init
This commit is contained in:
45
tsconfig.json
Normal file
45
tsconfig.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user