forked from wangrongding/prm-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
40 lines (40 loc) · 1.48 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
{
"ts-node": {
"compilerOptions": {
"target": "es6", // 编译后的代码类型
"module": "CommonJS", // 模块类型
"esModuleInterop": false, // es6 模块化
"isolatedModules": false, // 单文件模块
"types": ["node"]
}
},
"compilerOptions": {
"target": "es6", // 编译后的代码类型
"module": "CommonJS", // 模块类型
"removeComments": true, // 删除注释
"moduleResolution": "node", // 模块解析器
"useDefineForClassFields": true, // 类的字段使用 define 来定义
"strict": true, // 严格模式
"jsx": "preserve", // jsx 编译方式
"importHelpers": true, // 引入帮助器
"allowSyntheticDefaultImports": true, // 允许合成默认导入
"sourceMap": true, // 源码映射
"resolveJsonModule": true, // 解析 json 文件
"lib": ["esnext", "dom", "dom.iterable", "scripthost"], // 包含的库
"allowJs": true, // 允许使用 js
"noImplicitAny": true, // 不允许隐式any
"skipLibCheck": true, // 跳过库检查
"forceConsistentCasingInFileNames": true, // 文件名大小写一致
"baseUrl": ".", // 基础路径
"declaration": true, // 是否生成声明文件
"declarationDir": "types", // 声明文件输出路径
"outDir": "./bin", // 输出目录
// 路径映射
"paths": {
"@/*": ["src/*"]
}
},
// 包含的文件
"include": ["src/**/*.ts", "src/**/*.d.ts"],
"exclude": ["node_modules", "dist"] // 排除的文件
}