Add a separate tsconfig for excluding tests/mocks from builds, while leaving them for type checks

This commit is contained in:
2025-11-20 16:52:56 -08:00
parent a9db9b5d5c
commit 22322e5f0a
3 changed files with 18 additions and 3 deletions

View File

@@ -4,8 +4,8 @@
"description": "",
"main": "dist/index.js",
"scripts": {
"build:dev": "npm install --include=dev && npm run generate && tsc",
"build": "npm install --include=dev && npm run generate && tsc && npm prune --omit=dev",
"build:dev": "npm install --include=dev && npm run generate && tsc --project tsconfig.build.json",
"build": "npm install --include=dev && npm run generate && tsc --project tsconfig.build.json && 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",