2021-12-20 16:52:48 +08:00

38 lines
1.6 KiB
JSON

{
"compilerOptions": {
"declaration": true,
"lib": ["ES6", "ES2016", "ES2017", "ES2018", "ES2019", "ES2020"],
// Target latest version of ECMAScript.
"target": "es5",
// Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'.
"module": "commonjs",
// Search under node_modules for non-relative imports.
"moduleResolution": "node",
// Enable strictest settings like strictNullChecks & noImplicitAny.
"strict": true,
"strictPropertyInitialization": false,
// Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
"allowSyntheticDefaultImports": true,
// Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.
"esModuleInterop": true,
// Import emit helpers (e.g. __extends, __rest, etc..) from tslib
"importHelpers": true,
// Enables experimental support for ES7 decorators.
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
// Generates corresponding .map file.
"sourceMap": true,
// Disallow inconsistently-cased references to the same file.
"forceConsistentCasingInFileNames": true,
// Allow json import
"resolveJsonModule": true,
// skip type checking of declaration files
"skipLibCheck": true,
"types": ["jest", "node"],
"baseUrl": "." /* Base directory to resolve non-absolute module names. */,
"outDir": "lib"
},
"include": ["src/**/*"],
"exclude": ["**/test", "**/lib", "**/es", "node_modules"]
}