UNPKG

shatter_monitor

Version:
53 lines 1.82 kB
{ "compilerOptions": { "allowUnreachableCode": true, // 不报告执行不到的代码错误。 "allowUnusedLabels": false, // 不报告未使用的标签错误 "alwaysStrict": false, // 以严格模式解析并为每个源文件生成 "use strict"语句 "baseUrl": "./src", // 工作根目录 "preserveConstEnums": true, // 使用 const enum 产生内联成员 "experimentalDecorators": true, // 启用实验性的ES装饰器 "sourceMap": true, "noImplicitAny": false, // 是否默认禁用 any "removeComments": true, // 是否移除注释 "forceConsistentCasingInFileNames": true, //禁止对同一个文件的不一致的引用。 "paths": { // 指定模块的路径,和baseUrl有关联 "utils": [ "utils/index" ], "core": [ "core/index" ], }, "types": [ "node", ], "target": "ES6", // 编译成什么版本 "module": "ESNext", // 当前代码语法 "outDir": "./dist/", // 输出目录 "declaration": true, // 是否自动创建类型声明文件 "declarationDir": "./dist/types/", // 类型声明文件的输出目录 "typeRoots": [ // 指定某个文件夹的声明文件 "node_modules/@types" ], "allowJs": true, // 允许编译javascript文件。 "lib": [ // 编译过程中需要引入的库文件的列表 "es5", "es2015", "es2016", "es2017", "es2018", "dom" ] }, "files": [ "src/index.ts", ], "include": [ "src/**/*" ], "exclude": [ "node_modules", // "src/types/", "**/*.spec.ts" ], }