chore: Add copy-schema script, update Dockerfile schema path, and adjust npm prod workflow

This commit is contained in:
Andreas Hilbig 2026-01-14 10:28:33 +01:00
parent 70e64448e5
commit 437321ef6d
3 changed files with 71 additions and 51 deletions

View file

@ -7,10 +7,11 @@
"scripts": {
"compile": "tsc",
"start": "nodemon --watch \"src/**\" --watch \"schema.graphql\" --ext \"ts,json\" --exec \"tsc & node --require ts-node/register --inspect --import tsx/esm ./src/index.ts\"",
"prod": "node ./dist/index.js",
"prod": "npm run copy-schema && node ./dist/index.js",
"test": "jest --detectOpenHandles --forceExit --bail",
"codegen": "graphql-codegen --config codegen.ts --watch \"schema.graphql\"",
"nodemon": "nodemon --watch \"src/**\" --watch \"schema.graphql\" --ext \"ts,json\" --exec \"tsc"
"nodemon": "nodemon --watch \"src/**\" --watch \"schema.graphql\" --ext \"ts,json\" --exec \"tsc",
"copy-schema": "cp -R schema ./dist/"
},
"keywords": [],
"author": "Andreas Hilbig",