mirror of
https://github.com/onsonr/motr.git
synced 2025-03-10 17:29:10 +00:00
38 lines
1004 B
JSON
38 lines
1004 B
JSON
{
|
|
"compilerOptions": {
|
|
"lib": ["ES2020", "DOM"],
|
|
"target": "ES2020",
|
|
"module": "ES2020",
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@onsonr/es/*": ["./src/*"]
|
|
},
|
|
"outDir": "./dist",
|
|
// `node16` is too strict and causes type errors for imported pkgs.
|
|
// We use `tsc-alias` to help add the file extensions instead.
|
|
"moduleResolution": "bundler",
|
|
"forceConsistentCasingInFileNames": true,
|
|
"isolatedModules": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noImplicitAny": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"sourceMap": true
|
|
},
|
|
"include": ["src"],
|
|
"exclude": ["dist", "node_modules"],
|
|
"tsc-alias": {
|
|
// Add file extensions to imports/exports for ESM compatibility.
|
|
"resolveFullPaths": true,
|
|
// See: https://github.com/justkey007/tsc-alias/discussions/110.
|
|
"replacers": {
|
|
"base-url": {
|
|
"enabled": false
|
|
}
|
|
}
|
|
}
|
|
}
|