Files
xo-stack/tsconfig.json
T
James Zuccon f2210e631a Initial commit
Signed-off-by: James Zuccon <zuccon@gmail.com>
2024-08-16 22:06:01 +10:00

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
}