Skip to content

fix(build): explicitly include @types/node in tsconfig (unblocks TypeScript 6) - #78

Merged
tallnato merged 1 commit into
mainfrom
fix/tsconfig-explicit-node-types
Jun 5, 2026
Merged

fix(build): explicitly include @types/node in tsconfig (unblocks TypeScript 6)#78
tallnato merged 1 commit into
mainfrom
fix/tsconfig-explicit-node-types

Conversation

@tallnato

@tallnato tallnato commented Jun 5, 2026

Copy link
Copy Markdown
Member

Renovate PR #77 (typescript 5→6) fails validate + build because TS 6.0 stopped auto-including @types/*, so the Node globals in the build scripts no longer resolve.

  • Add \"types\": [\"node\"] to tsconfig.json.
  • Verified npm run validate + npm run build pass with 0 TS errors on both TS 5.9.3 and TS 6.0.3.

With this on main, #77 goes green once Renovate rebases it (or hit the rebase checkbox). Harmless on the current TS 5.

🤖 Generated with Claude Code

…Script 6)

scripts/build.ts + validate.ts rely on Node globals (fs, path, process, console, Buffer, __dirname). TypeScript <=5 auto-included all @types/* packages, so this worked implicitly; TypeScript 6.0 no longer does, so ts-node failed to type-check both scripts (TS2591/2584/2304 'cannot find name ...' + TS7006 implicit-any on the now-uncontextualized callbacks), breaking the validate + build CI checks (see Renovate PR #77). Declaring types:[node] fixes it and is harmless on TS 5 (Node types are auto-included there anyway). Verified: validate + build pass with 0 TS errors on both TS 5.9.3 and TS 6.0.3.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tallnato
tallnato merged commit 575c1e5 into main Jun 5, 2026
3 checks passed
@tallnato
tallnato deleted the fix/tsconfig-explicit-node-types branch June 5, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant