fix: isolate dev output from production builds

This commit is contained in:
2026-09-09 11:10:11 +03:00
parent 9fcc0ec010
commit 320e8a04b0
4 changed files with 11 additions and 3 deletions
+1
View File
@@ -1,5 +1,6 @@
# compiled output # compiled output
/dist /dist
/dist-dev
/node_modules /node_modules
/build /build
+2 -2
View File
@@ -12,8 +12,8 @@
"build": "prisma generate && nest build", "build": "prisma generate && nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start", "start": "nest start",
"start:dev": "NODE_ENV=development nest start --watch", "start:dev": "NODE_ENV=development nest start --watch --path tsconfig.dev.json",
"start:debug": "nest start --debug --watch", "start:debug": "nest start --debug --watch --path tsconfig.dev.json",
"start:prod": "node dist/src/main.js", "start:prod": "node dist/src/main.js",
"lint": "npm run lint:check", "lint": "npm run lint:check",
"lint:check": "eslint \"{src,apps,libs,test}/**/*.ts\" --max-warnings=0", "lint:check": "eslint \"{src,apps,libs,test}/**/*.ts\" --max-warnings=0",
+1 -1
View File
@@ -1,4 +1,4 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"] "exclude": ["node_modules", "test", "dist", "dist-dev", "**/*spec.ts"]
} }
+7
View File
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist-dev",
"tsBuildInfoFile": "./dist-dev/tsconfig.dev.tsbuildinfo"
}
}