Skip to content
This repository was archived by the owner on Nov 26, 2026. It is now read-only.

Typecheck with tsrs instead of tsc (D-061) - #21

Merged
TennyZhuang merged 1 commit into
mainfrom
tsrs
Oct 20, 2026
Merged

TennyZhuang merged 1 commit into
mainfrom
tsrs

Conversation

@TennyZhuang

@TennyZhuang TennyZhuang commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Task #39 (xxchan, through Cindy): typecheck with tsrs (oxc-project/tsrs, the Rust port of TypeScript 7) locally and in CI.

  • typecheck:node, typecheck:web, typecheck:e2e run tsrs -p … instead of tsc -p ….
  • tsrs devDependency pinned exactly to 0.18.0-ts7.1.0-dev.20260929 (experimental, ships every few days).
  • typescript removed: pnpm why typescript showed only rowrow itself. oxlint's type-aware rules still run without it (tried no-floating-promises on a scratch file: it fires). Vite, Vitest and scripts/build-node.ts (Node's stripTypeScriptTypes) strip types without it.
  • Same answers: 0 errors on all three tsconfigs, and a deliberate type error fails with error TS2322 and exit 2 on node and web.
  • Platforms: tsrs has macOS arm64 and Linux x64/arm64 binaries only. Only ci.yml and release.yml typecheck (both pnpm check on ubuntu-latest); desktop.yml and ios.yml don't typecheck. AGENTS.md/CLAUDE.md say so next to pnpm check.
  • D-061 records the choice and when to revisit it.

Times (Fly Sprite, 8-core x86_64, warm runs):

tsc 7.0.2 tsrs 0.18.0
tsconfig.node.json 1.35 s 0.27 s
tsconfig.web.json 1.34 s 0.31 s
tsconfig.e2e.json 1.00 s 0.24 s
pnpm typecheck 4.2–4.4 s 2.8 s
pnpm check 34.0–36.3 s 30.9–32.8 s
CI pnpm check step (ubuntu-latest) 49 s (main, 0e0a3f2) 46 s (this PR)

CI on this PR is all green: ci (check, e2e, package), desktop, ios.

pnpm check runs typecheck alongside lint and the format check, then Vitest, so most of it is the tests (461 passed, 2 skipped, both before and after).

🤖 Generated with Claude Code

tsrs (oxc-project/tsrs) is a Rust port of TypeScript 7. It reports what
tsc 7.0.2 reports on all three tsconfigs and is 4-5x faster per project.
Pinned to one exact build: it's experimental and ships every few days.
typescript is removed; nothing else needs it. tsrs has binaries for macOS
on Apple silicon and Linux only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@TennyZhuang
TennyZhuang merged commit eae1c20 into main Oct 20, 2026
7 checks passed
@TennyZhuang
TennyZhuang deleted the tsrs branch October 20, 2026 20:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant