Skip to content

Commit 08e9208

Browse files
fix(ts): TypeScript 6.0 compat — ignoreDeprecations for baseUrl + node types
TS 6.0.3 turns the `baseUrl` deprecation into a hard error (TS5101) and stops auto-including @types/node ambient globals for the src project, so test files using fs/path/__dirname fail (TS2591/TS2304). - add `"ignoreDeprecations": "6.0"` to silence the baseUrl deprecation - add `"types": ["node"]` so node module/global types resolve (vite/client stays covered by the /// reference in vite-env.d.ts) `npm run gate` (tsc --noEmit && build && vitest) green: 79 files, 1107 passed / 3 skipped. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9358878 commit 08e9208

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"noUnusedLocals": false,
1616
"noUnusedParameters": false,
1717
"noFallthroughCasesInSwitch": true,
18+
"ignoreDeprecations": "6.0",
19+
"types": ["node"],
1820
"baseUrl": ".",
1921
"paths": {
2022
"@/*": ["src/*"]

0 commit comments

Comments
 (0)