-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
37 lines (37 loc) · 1.38 KB
/
Copy pathtsconfig.json
File metadata and controls
37 lines (37 loc) · 1.38 KB
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
{
"compilerOptions": {
// Specifies ECMAScript target version: ES2016
// 指定 ECMAScript 目标版本:ES2016
"target": "es2016",
// Specifies module code generation: CommonJS
// 指定模块代码生成方式:CommonJS
"module": "commonjs",
// Generates corresponding '.d.ts' file
// 生成对应的 '.d.ts' 声明文件
"declaration": true,
// Redirect output structure to the directory
// 重定向输出结构到指定目录
"outDir": "./dist",
// Enables emit interoperability between CommonJS and ES Modules
// 启用 CommonJS 和 ES 模块之间的互操作性
"esModuleInterop": true,
// Ensures consistent casing in file names
// 确保文件名大小写一致性
"forceConsistentCasingInFileNames": true,
// Enable all strict type checking options
// 启用所有严格类型检查选项
"strict": true,
// Skip type checking of declaration files
// 跳过声明文件的类型检查
"skipLibCheck": true,
// Specify the root directory of input files
// 指定输入文件的根目录
"rootDir": "./src"
},
// Specifies the files to be included in compilation
// 指定要包含在编译中的文件
"include": ["src/**/*"],
// Specifies the files to be excluded from compilation
// 指定要从编译中排除的文件
"exclude": ["test", "data", "examples", "node_modules"]
}