49 lines
1.3 KiB
JSON
49 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
// types option has been previously configured
|
|
"types": [
|
|
// add node as an option
|
|
"node"
|
|
],
|
|
"module": "commonjs", //指定生成哪个模块系统代码
|
|
"target": "es2017",
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"lib": [
|
|
"es2015",
|
|
"es2016",
|
|
"esnext.asynciterable",
|
|
"dom"
|
|
],
|
|
"noImplicitAny": false, //暂时关闭在表达式和声明上有隐含的'any'类型时报错。
|
|
"noImplicitThis": true,
|
|
"inlineSourceMap": true, //用于debug
|
|
|
|
"rootDirs": [".", "../shared"], //仅用来控制输出的目录结构--outDir。
|
|
"outDir":"./dist", //重定向输出目录。
|
|
"experimentalDecorators":true,
|
|
"emitDecoratorMetadata": true,
|
|
"moduleResolution": "node",
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@consts": ["../shared/consts"],
|
|
"@consts/*": ["../shared/consts/*"],
|
|
"@db": ["../shared/db"],
|
|
"@db/*": ["../shared/db/*"],
|
|
"@domain/*": ["../shared/domain/*"],
|
|
"@pubUtils/*": ["../shared/pubUtils/*", "app/services/*", "app/util/*"],
|
|
"@resource/*": ["../shared/resource/*"]
|
|
}
|
|
},
|
|
"include":[
|
|
"./app/**/*.json",
|
|
"./app/**/*.ts",
|
|
"./config/**/*.ts",
|
|
"./app.ts",
|
|
"./preload.ts"
|
|
],
|
|
"exclude": [
|
|
"./dist/**/*.*"
|
|
]
|
|
}
|