-
Notifications
You must be signed in to change notification settings - Fork 10
/
tsconfig.json
41 lines (41 loc) · 1.26 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"compilerOptions": {
"module": "commonjs", //指定生成哪个模块系统代码
"target": "es2019", //目标代码类型
"noImplicitAny": false, //在表达式和声明上有隐含的'any'类型时报错。
"allowJs": true, //允许编译js文件
"checkJs": true, //在 .js文件中报告错误。与 --allowJs配合使用。
"sourceMap": false, //用于debug
"rootDir": "./src", //仅用来控制输出的目录结构--outDir。
"outDir": "./dist", //重定向输出目录。
"declaration": true, //生成类型文件
"importHelpers": true,
"esModuleInterop": true,
"moduleResolution": "node",
"strictPropertyInitialization": false,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true, //开启装饰器
"removeComments": false,
"baseUrl": ".",
"paths": {
"@/*": [
"src/*"
],
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
},
"include": [
"src/*.ts",
"src/**/*.ts",
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/node_modules/*"
]
}