Files
chat-one-service/tsconfig.json
alboped e16101865d
All checks were successful
CI / ci (push) Successful in 1m26s
fix(runtime): 修复容器内路径别名导致的模块加载失败
为 Node/PM2 增加 module-alias 运行时解析,并将本地 Prisma 服务别名改为 @db,避免与 @prisma/client 冲突,确保 Docker 启动时可正确加载 dist 模块。

Made-with: Cursor
2026-04-28 06:57:10 +08:00

33 lines
834 B
JSON

{
"compilerOptions": {
"module": "Node16",
"declaration": false,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ES2021",
"rootDir": "./src",
"sourceMap": true,
"outDir": "./dist",
"incremental": true,
"strict": true,
"noImplicitAny": false,
"strictNullChecks": true,
"moduleResolution": "node16",
"esModuleInterop": true,
"skipLibCheck": true,
"types": ["node"],
"paths": {
"@common/*": ["./src/common/*"],
"@config/*": ["./src/config/*"],
"@apps/*": ["./src/apps/*"],
"@shared/*": ["./src/apps/shared-domain/*"],
"@db/*": ["./src/prisma/*"]
},
},
"include": ["src/**/*", "prisma/**/*"],
"exclude": ["node_modules", "dist"]
}