api container crashed on boot: Cannot find module '/app/dist/main.js'. Root cause: tsconfig.json had no rootDir, and prisma/make-admin.ts (run separately via ts-node, never part of the Nest build) was swept into the nest build compilation since there was no exclude either - so tsc inferred the output root as the project root and nested everything under dist/src/ instead of the flat dist/main.js the Dockerfile, package.json scripts, and compose's worker command all assume. Also excludes tsconfig.tsbuildinfo from the Docker build context - a stale local incremental-build cache file was leaking in via `COPY . .` (only dist/node_modules were dockerignored) and made nest build skip emitting .js files entirely on a from-scratch container build once the rootDir fix invalidated its cached signature.
24 lines
618 B
JSON
24 lines
618 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "commonjs",
|
|
"declaration": true,
|
|
"removeComments": true,
|
|
"emitDecoratorMetadata": true,
|
|
"experimentalDecorators": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"target": "ES2021",
|
|
"sourceMap": true,
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"baseUrl": "./",
|
|
"incremental": true,
|
|
"skipLibCheck": true,
|
|
"strictNullChecks": true,
|
|
"noImplicitAny": false,
|
|
"strictBindCallApply": false,
|
|
"forceConsistentCasingInFileNames": false,
|
|
"noFallthroughCasesInSwitch": false
|
|
},
|
|
"exclude": ["node_modules", "dist", "prisma"]
|
|
}
|