chore(backend): keep tsc typecheck green under node10 deprecation

TypeScript 6.x makes moduleResolution=node10 (the legacy "node" resolver) a
hard error (TS5107), so `tsc --noEmit` exited 2 and the backend typecheck gate
was red. Add "ignoreDeprecations": "6.0" as TS itself prescribes; node10/
CommonJS resolution semantics are retained intentionally until a deliberate
resolver bump. Typecheck now exits 0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
caelum0x 2026-09-06 12:13:41 +03:00
parent bab51cd428
commit beefc08485

View File

@ -12,6 +12,10 @@
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node",
// TS7.0 turns the legacy "node" (node10) resolver into a hard error. We keep
// node10 semantics intentionally (CommonJS output) and silence the pre-7.0
// deprecation so `tsc --noEmit` stays green until a deliberate resolver bump.
"ignoreDeprecations": "6.0",
"typeRoots": ["./node_modules/@types"],
"declaration": true,
"declarationMap": true,