duoqi-api/tsconfig.json
Wang Zhuoxuan 32dd6a3190
All checks were successful
CI/CD Pipeline / Code Quality (push) Successful in 25s
CI/CD Pipeline / Unit Tests (push) Successful in 20s
CI/CD Pipeline / Build & Deploy Test (push) Has been skipped
CI/CD Pipeline / Build & Deploy Production (push) Successful in 1m28s
perf: 移除 tsconfig 中不必要的 declaration 和 declarationMap 降低 CI 内存占用
API 服务器不需要生成 .d.ts 声明文件,这两个选项是 tsc 内存消耗的主要来源,
在内存受限的 CI runner 上会导致 OOM 被 SIGKILL。
2026-05-28 23:48:48 +08:00

22 lines
543 B
JSON

{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"sourceMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}