39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"compilerOptions": {
|
|
// Target esnext (rollup step will transpile to CJS and EJS)
|
|
"target": "esnext",
|
|
|
|
// Use node as module resolution strategy for best compatibility with dependencies
|
|
"moduleResolution": "node",
|
|
"module": "esnext",
|
|
|
|
// Set the root directory and output directory
|
|
"rootDir": "./src",
|
|
"outDir": "./build/lib",
|
|
|
|
// Allow ES modules to be used
|
|
"esModuleInterop": true,
|
|
|
|
// Allow importing .json files in project
|
|
"resolveJsonModule": true,
|
|
|
|
// Generate declarations, declaration maps and sourcemaps
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"sourceMap": true,
|
|
|
|
// Use strict Typescript rules
|
|
"strict": true,
|
|
"strictPropertyInitialization": true,
|
|
|
|
// Allow use of ES2017 and DOM features/libraries
|
|
"lib": ["es2017", "dom"]
|
|
},
|
|
|
|
// Exclude these directories from the Typescript transpile
|
|
"exclude": ["node_modules/**", "dist/**", "public/**"],
|
|
|
|
// Do not compile upon save - this feature requires tsc-w(atch)
|
|
"compileOnSave": true
|
|
}
|