Skip to content

chore(tsconfig): es2024 target/lib, require @types/node#54

Draft
natemoo-re wants to merge 1 commit into
mainfrom
chore/tsconfig-baseline
Draft

chore(tsconfig): es2024 target/lib, require @types/node#54
natemoo-re wants to merge 1 commit into
mainfrom
chore/tsconfig-baseline

Conversation

@natemoo-re

Copy link
Copy Markdown
Member

Summary

Session logs showed ambient-type failures dominating real type errors across bombshell-dev projects: TS2591 (Cannot find name process/Buffer) ×104, TS2304 ×114, TS2584 ×28 — every fresh package hit a wall of these because the shared tsconfig neither guaranteed @types/node nor covered modern lib APIs.

  • target/lib: es2022 → es2024, so Array.prototype.toSorted, Promise.withResolvers, etc. type-check without shims (our own unicorn/no-array-sort rule pushes toSorted)
  • "types": ["node"]: packages must now install @types/node. Missing it previously surfaced as dozens of TS2591s; now it's a single actionable Cannot find type definition file for 'node' (TS2688). Remedy: pnpm add -D @types/node.

Validation

  • This repo type-checks clean under the new baseline
  • Synthetic package without @types/node: exactly one clear TS2688
  • toSorted/Promise.withResolvers type-check under the new lib

Includes changeset (minor).

types:[node] turns a wall of TS2591 ambient-type errors into one
actionable TS2688 when @types/node is missing. es2024 lib covers the
modern APIs (toSorted, Promise.withResolvers) our lint rules push.
@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8c5c0f7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bomb.sh/tools Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@bomb.sh/tools@54

commit: 8c5c0f7

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