-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtsconfig.json
38 lines (36 loc) · 1 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
{
"compilerOptions": {
// types option has been previously configured
"types": [
// add node as an option
"node", "jest"
],
"module": "commonjs", //指定生成哪个模块系统代码
"target": "es2017",
"lib": [
"es2015",
"es2016",
"es2017",
"esnext.asynciterable"
],
"noImplicitAny": false, //在表达式和声明上有隐含的'any'类型时报错。
"noImplicitThis": false,
"inlineSourceMap": true,
"skipLibCheck": true,
"rootDirs": ["."], //仅用来控制输出的目录结构--outDir。
"outDir":"./dist", //重定向输出目录。
"experimentalDecorators":true,
"emitDecoratorMetadata": true,
"moduleResolution": "node",
"watch":false //在监视模式下运行编译器。会监视输出文件,在它们改变时重新编译。
},
"include":[
"./src/lib/**/*.ts",
"./src/index.ts"
],
"exclude": [
"./dist/**/*.*",
"node_modules",
"./src/tests/**/*.*"
]
}