Skip to content

Commit 2eceb5d

Browse files
chore(deps-dev): TypeScript 6 + fixes (#28)
Bump typescript devDependency 5.9.3 -> 6.0.3. TS 6.0 no longer auto-includes the @types/node ambient globals for this project's NodeNext config, so `node:fs`/`process`/`Buffer` etc. failed with TS2591. Add `"types": ["node"]` to tsconfig compilerOptions (the fix the TS6 error message itself recommends). tsconfig.test.json extends this config and inherits the setting, so both the build and the test compile pass. Supersedes dependabot PR #16. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent cf49e35 commit 2eceb5d

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"devDependencies": {
5858
"@types/node": "^25.9.1",
59-
"typescript": "^5.9.3"
59+
"typescript": "^6.0.3"
6060
},
6161
"engines": {
6262
"node": ">=18"

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"target": "ES2022",
44
"module": "NodeNext",
55
"moduleResolution": "NodeNext",
6+
"types": ["node"],
67
"outDir": "dist",
78
"rootDir": "src",
89
"strict": true,

0 commit comments

Comments
 (0)