Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/tsconfig-baseline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@bomb.sh/tools': minor
---

Updates the shared `tsconfig.json` baseline for modern Node packages

- `target` and `lib` move from `es2022` to `es2024`, so modern APIs like `Array.prototype.toSorted` and `Promise.withResolvers` type-check without shims.
- Adds `"types": ["node"]`. Packages must now have `@types/node` installed — missing it previously surfaced as dozens of `Cannot find name 'process'/'Buffer'` (TS2591) errors; now it's a single actionable `Cannot find type definition file for 'node'` (TS2688). Remedy: `pnpm add -D @types/node`.
7 changes: 5 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"target": "es2024",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
Expand All @@ -23,7 +23,10 @@
"moduleResolution": "nodenext",
"noEmit": true,
"declaration": true,
"lib": ["es2022"],
"lib": ["es2024"],

/* Node packages need @types/node — one clear error beats a wall of TS2591s */
"types": ["node"],

/* Monorepo? */
"composite": true,
Expand Down
Loading