Initial commit

Signed-off-by: James Zuccon <zuccon@gmail.com>
This commit is contained in:
James Zuccon
2024-08-16 22:06:01 +10:00
commit f2210e631a
30 changed files with 2373 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
{
"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
}