Skip to content

chore: update TypeScript native preview#36594

Open
kitlangton wants to merge 1 commit into
v2from
update-tsgo
Open

chore: update TypeScript native preview#36594
kitlangton wants to merge 1 commit into
v2from
update-tsgo

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

What

Update the TypeScript native preview from the December 2025 build to the current July 2026 build. The newer compiler completes a forced monorepo typecheck about 10% faster and uses about 9% less peak memory in local profiling.

How

  • update @typescript/native-preview from 7.0.0-dev.20251207.1 to 7.0.0-dev.20260707.2
  • regenerate bun.lock
  • declare package runtime type environments explicitly, as required by the newer compiler
  • keep HTTP recorder's production types Node-only and its test types Bun plus Node
  • add DOM libraries to codemode for its intentional Web API globals

No application source code changes were required.

Scope

This does not change Turbo concurrency or the pre-push hook. Concurrent full typechecks from separate worktrees can still saturate a developer machine; that coordination should be handled separately.

Testing

  • bun turbo typecheck --concurrency=3 --force --continue=always --output-logs=errors-only
  • bun run typecheck:profile --force --output-logs=errors-only twice
  • bun install --frozen-lockfile
  • git diff --check

Forced profile results:

Compiler Duration Average CPU Peak RSS
Dec 2025, run 1 77.9s 389% 9.7 GB
Dec 2025, run 2 77.7s 368% 10.9 GB
Jul 2026, run 1 77.3s 366% 9.6 GB
Jul 2026, run 2 63.2s 409% 9.2 GB

The pre-push typecheck also passed with 31/31 tasks successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant