45 lines
958 B
JSON
45 lines
958 B
JSON
{
|
||
"compilerOptions": {
|
||
/* 基础选项 */
|
||
"target": "ES2022",
|
||
"module": "ESNext",
|
||
"moduleResolution": "bundler",
|
||
"esModuleInterop": true,
|
||
"allowSyntheticDefaultImports": true,
|
||
"strict": true,
|
||
"skipLibCheck": true,
|
||
"forceConsistentCasingInFileNames": true,
|
||
|
||
/* 类型检查增强 */
|
||
"exactOptionalPropertyTypes": false,
|
||
"noImplicitAny": true,
|
||
"strictNullChecks": true,
|
||
"strictFunctionTypes": true,
|
||
"strictBindCallApply": true,
|
||
"noUncheckedIndexedAccess": true,
|
||
|
||
/* 输出与源码 */
|
||
"outDir": "./dist",
|
||
"rootDir": "./src",
|
||
"sourceMap": true,
|
||
|
||
/* Bun & ESM 支持 */
|
||
"lib": ["ES2022", "DOM"],
|
||
"types": ["bun-types", "@types/node"],
|
||
|
||
/* 路径别名(可选) */
|
||
// "baseUrl": "./src",
|
||
// "paths": {
|
||
// "@/*": ["./*"]
|
||
// }
|
||
},
|
||
"include": [
|
||
"src/**/*",
|
||
"*.ts"
|
||
],
|
||
"exclude": [
|
||
"node_modules",
|
||
"dist",
|
||
"coverage"
|
||
]
|
||
} |