-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
30 lines (30 loc) · 1.75 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
{
"compilerOptions": {
"outDir": "dist", // 输出的目录
"target": "es2016", // 转译的目标语法
"lib": ["esnext", "dom"], //支持的类库 esnext及dom
"experimentalDecorators": true /* Enable experimental support for TC39 stage 2 draft decorators. */,
"jsx": "preserve", // jsx 不转义
"module": "esnext", // 模块格式
"rootDir": "." /* Specify the root folder within your source files. */,
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
"baseUrl": "." /* Specify the base directory to resolve non-relative module names. */,
"paths": {
"@mini-jackz-vue/*": ["packages/*/src"]
} /* Specify a set of entries that re-map imports to additional lookup locations. */,
"types": ["jest", "node"],
"allowJs": false /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
"removeComments": false /* Disable emitting comments. */,
"downlevelIteration": true /* Emit more compliant, but verbose and less performant JavaScript for iteration. */,
"resolveJsonModule": true, // 解析 json 模块
"esModuleInterop": true, // 允许通过 es6 语法引入 commonjs 模块
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
"strict": true /* Enable all strict type-checking options. */,
"noImplicitAny": false /* Enable error reporting for expressions and declarations with an implied 'any' type. */,
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
// 指定待编译的文件
"include": ["packages/global.d.ts", "packages/*/src", "packages/*/__tests__"],
// 指定排除的文件
"exclude": ["node_modules"]
}