{ "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 } } } }