41 lines
751 B
JSON
41 lines
751 B
JSON
{
|
|
"ts-node": {
|
|
"files": true,
|
|
"emit": true,
|
|
"compilerHost": true
|
|
},
|
|
"compilerOptions": {
|
|
// 基础设置
|
|
"target": "es2015",
|
|
"module": "ESNext",
|
|
"moduleResolution": "node",
|
|
"lib": [
|
|
"es2015"
|
|
],
|
|
// 输出设置
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"sourceMap": true,
|
|
// 模块兼容性
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
// 严格模式(推荐)
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
// "typeRoots": [
|
|
// "./node_modules/@types"
|
|
// ],
|
|
// "types": [
|
|
// "node"
|
|
// ]
|
|
},
|
|
"include": [
|
|
"src/**/*"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist"
|
|
]
|
|
} |