Files
Yudhi Armyndharis 726c5cb15a fix(build): keep tsbuildinfo inside dist so nest deleteOutDir cannot strand it
TypeScript 6 (#877) moved the default tsbuildinfo location from outDir to next to the config file. nest start --watch wipes dist/ via deleteOutDir, but the cache now survived at the project root, so tsc trusted it, emitted zero JS, and the spawned node dist/main crashed with MODULE_NOT_FOUND on every run after the first.

Pin tsBuildInfoFile back inside dist/ so the cache is wiped together with the output, restoring the pre-TS6 full-emit-on-start behavior.

Closes #891
2026-07-24 14:41:46 +07:00

14 lines
607 B
JSON

{
"extends": "./tsconfig.json",
"compilerOptions": {
// TypeScript 6 requires the output layout anchor to be explicit (TS5011).
"rootDir": "./src",
// Keep the incremental cache inside outDir: TypeScript 6 moved the default next to this
// config file, where nest's deleteOutDir no longer wipes it — tsc then trusted the stale
// cache, emitted nothing, and `node dist/main` crashed with MODULE_NOT_FOUND (issue #891).
"tsBuildInfoFile": "./dist/tsconfig.build.tsbuildinfo"
},
"exclude": ["node_modules", "test", "dist", "**/*spec.ts", "dashboard"],
"include": ["src"]
}