mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": ["ES2022", "DOM"],
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@sonr.io/es/*": ["./src/*"]
|
||||
},
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
// `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,
|
||||
|
||||
// Relaxed type checking to allow build with existing issues
|
||||
"strict": false,
|
||||
"noImplicitAny": false,
|
||||
"noFallthroughCasesInSwitch": false,
|
||||
"strictNullChecks": false,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"noImplicitReturns": false,
|
||||
"allowUnreachableCode": true,
|
||||
"allowUnusedLabels": true,
|
||||
"noUncheckedIndexedAccess": false,
|
||||
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"sourceMap": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["dist", "node_modules", "**/*.test.ts", "**/__tests__/**"],
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user