37 lines
915 B
JSON
37 lines
915 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es6",
|
|
"module": "commonjs",
|
|
"lib": ["es2020"],
|
|
// Tells TypeScript to read JS files, as
|
|
// normally they are ignored as source files
|
|
"allowJs": true,
|
|
// Generate d.ts files
|
|
"declaration": true,
|
|
// go to js file when using IDE functions like
|
|
// "Go to Definition" in VSCode
|
|
"declarationMap": true,
|
|
"sourceMap": true,
|
|
// Types should go into this directory.
|
|
// Removing this would place the .d.ts files
|
|
// next to the .js files
|
|
"outDir": "dist",
|
|
"strict": true,
|
|
"noImplicitAny": true,
|
|
"esModuleInterop": true,
|
|
"resolveJsonModule": true,
|
|
"incremental": true,
|
|
"types": [ "node", "jest"],
|
|
},
|
|
"include": [
|
|
"**/*.js",
|
|
"**/*.ts",
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist/**/*",
|
|
"**/*.spec.js",
|
|
// "**/*.spec.ts" // don't exclude spec.ts files for editor support
|
|
]
|
|
}
|