add generation step to production build

This commit is contained in:
2024-12-27 13:42:35 -08:00
parent 75c1435c95
commit ea1fdd68a9

View File

@@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"build:dev": "npm install --include=dev && npm run generate && tsc",
"build": "npm install --include=dev && tsc && npm prune --omit=dev",
"build": "npm install --include=dev && npm run generate && tsc && npm prune --omit=dev",
"start:dev": "npm run build:dev && node ./dist/index.js",
"start": "npm run build && node ./dist/index.js",
"generate": "graphql-codegen --config codegen.ts"