Make the compiler config honestly describe a Node 22 / Bun 1.1+ / Deno library: target ES2020 -> ES2023, lib [DOM, ESNext, DOM.Asynciterable] -> [ES2023], drop the now-inert downlevelIteration. 8.0 dropped the browser path, so the DOM lib was misleading (it implied web APIs the package no longer supports). No ES2021-2023 syntax is used anywhere, so .js emit is effectively unchanged — this is hygiene, not a perf/behavior change. The one real consequence of dropping DOM: the Cloudflare-Workers edge probe read globalThis.caches from the DOM lib — declared `caches?: unknown` locally on the runtime-globals intersection alongside Deno/Bun/HTMLRewriter. .d.ts is shape-stable (TS-5.x-parseable preserved — no cor coordination). Gates: typecheck 0, cli-tsconfig 0, typecheck-tsconfig (the .d.ts contract surface) 0, build 0, test:unit 1753/1753, test:bun 8/8.
34 lines
No EOL
682 B
JSON
34 lines
No EOL
682 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2023",
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"esModuleInterop": true,
|
|
"strict": true,
|
|
"resolveJsonModule": true,
|
|
"declaration": true,
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"lib": [
|
|
"ES2023"
|
|
],
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noEmit": false,
|
|
"preserveConstEnums": true,
|
|
"sourceMap": true,
|
|
"isolatedModules": true,
|
|
"noImplicitOverride": true
|
|
},
|
|
"include": [
|
|
"src/**/*"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist",
|
|
"**/*.test.ts",
|
|
"src/scripts/**/*",
|
|
"src/cli/**/*",
|
|
"src/mcp/**/*"
|
|
]
|
|
} |