mirror of
https://github.com/onsonr/nebula.git
synced 2025-03-10 09:27:09 +00:00
48 lines
1.0 KiB
JSON
48 lines
1.0 KiB
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
|
|
}
|
|
}
|
|
}
|
|
}
|