forked from mengzonefire/rapid-upload-userscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
24 lines (24 loc) · 943 Bytes
/
tsconfig.json
File metadata and controls
24 lines (24 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/", // 打包到的目录
"sourceMap": false, // 是否生成sourceMap(用于浏览器调试)
"noImplicitAny": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"declaration": true, // 是否生成声明文件
"declarationDir": "./dist/types/", // 声明文件打包的位置
"declarationMap": true, // 是否生成声明文件map文件(便于调试)
"module": "ES2015",
"target": "es5", // 转化成的目标语言 设为es5以支持更多浏览器
"baseUrl": ".",
"paths": { "@/*": ["src/*"] },
"types": ["node", "tampermonkey", "jquery"], // 引入的全局类型声明
"typeRoots": ["./node_modules/@types"],
"lib": ["dom", "es2015"],
"jsx": "react",
"allowJs": false
},
"include": ["src/**/*.tsx", "src/**/*.ts"], // 要打包的文件
"exclude": ["node_modules", "*.test.ts"]
}