Repository navigation
Closed
Labels
area:ciCI, shared testing infrastructure, development scripts and toolingarea:cliTouches the cli areadependenciesPull requests that update a dependency file
Description
Move Patchy to TypeScript 7, the Go compiler, everywhere: the workspace, the CLI and patch repos. TypeScript 7.0 ships no JavaScript compiler API, so everything that still reads TypeScript's API moves off it, and no TypeScript 6 stays behind.
Decisions
- Lint moves from ESLint and typescript-eslint to Oxlint. Its type-aware rules run on TypeScript 7 through
oxlint-tsgolint, and the repo's own rules run as an Oxlint JS plugin. New patch repos lint with Oxlint too. - Effect diagnostics come from
@effect/tsgo.effect-tsgo tscruns an Effect-patched TypeScript 7 without patchingnode_modules. - New patch repos start on TypeScript 7, and the CLI refuses to publish a repo still on TypeScript 6. The refusal says how to move both its compiler and its lint. Published patches keep running untouched.
- The
node:cryptoimports the new Effect checker flags move to Effect'sCryptoservice. HMAC, AES-GCM and timing-safe comparison have no Effect equivalent, so they keepnode:cryptowith a per-file reason. - The CLI parses patch sources with
@babel/parserinstead of TypeScript's API. TypeScript 7 emits the CLI's declarations and Rolldown bundles them.
Stack
build: lint with Oxlintrefactor: Effect Crypto replaces node:cryptorefactor(cli): parse patch sources without the TypeScript APIbuild: TypeScript 7feat(cli): new and published patches use TypeScript 7
Baseline on main (2f9f7c1): TypeScript 6 and ESLint
One 16-core Linux machine, Node 24.20. Medians of 3 runs (5 for patch repos, 10 for the CLI), uncached.
| Measure | Time | Peak memory |
|---|---|---|
| Type-check every project in turn, compiler only | 151 s | 3.3 GB |
| Type-check the tests program | 87 s | 3.3 GB |
pnpm typecheck |
142 s | 3.3 GB |
pnpm build |
75 s (57–134 s, shared machine) | 0.9 GB |
pnpm lint |
38 s | 3.5 GB |
patchy --version |
0.35 s | 170 MB |
| CLI tarball | 35.1 MB (index.js 13.9 MB) |
|
Patch repo tsc --noEmit: 52-file tier 2 / 40-file tier 1 / 25-file tier 2 |
2.4 / 2.9 / 1.2 s | 0.4–0.5 GB |
Patch repo eslint .: same repos |
1.3 / 1.1 / 0.6 s | 0.2–0.45 GB |
CI medians over main's last 5 runs: pnpm lint 44 s, pnpm typecheck 145 s, the CLI release build 62 s.
Done means
pnpm typecheck,pnpm buildandpnpm lintrun on TypeScript 7 and Oxlint, with the same Effect rules failing the build, and no TypeScript 6 in the lockfile.patchy initmakes a TypeScript 7 repo that lints with Oxlint, and publishing a TypeScript 6 repo is refused with the steps to move it.- The same measurements, rerun on the finished stack, are posted here beside the baseline.
Metadata
Metadata
Assignees
Labels
area:ciCI, shared testing infrastructure, development scripts and toolingarea:cliTouches the cli areadependenciesPull requests that update a dependency file
Activity
refactor: Effect Crypto replaces node:crypto inside Effect
allisonmahmood commentedon Oct 29, 2026
The same measurements rerun at #1009's head (9afa182), the workspace's last TypeScript change in the stack: TypeScript 7,
@effect/tsgoand Oxlint. Same machine, script and medians as the baseline above; load during these runs was equal or higher (load average 4.7–9.7).apps/serverpnpm typecheckpnpm buildpnpm lintpatchy --versiontsc --noEmit: 52-file tier 2 / 40-file tier 1 / 25-file tier 2Peak memory falls for the server program (653 → 357 MB), lint (3.5 → 2.6 GB) and patch repos (0.4–0.5 → 0.15–0.27 GB). The whole-workspace type-check stays about the same, around 3.2 GB.
The three real patch repos type-check under TypeScript 7 and lint clean under the scaffold's Oxlint config without code changes.
feat(cli): published patches use TypeScript 7
refactor: Effect Crypto replaces node:crypto inside Effect
build: TypeScript 7
feat(cli): published patches use TypeScript 7
build: lint with Oxlint (#989)
refactor(cli): parse patch sources without the TypeScript API
refactor(cli): parse patch sources without the TypeScript API (#994)
refactor: Effect Crypto replaces node:crypto inside Effect
refactor: Effect Crypto replaces node:crypto inside Effect (#1000)
build: TypeScript 7
build: TypeScript 7 (#1009)
feat(cli): published patches use TypeScript 7
perf(execution): supervisors read the loader bundled at build time
perf(execution): processes stay warm for ten minutes after their last…
perf(execution): processes stay warm for ten minutes after their last…
feat(runtime): a portal view readies its company's tier 2 tools befor…
fix(company-database): count open company connections, not pool maxima
perf(execution): binds load into a workerd started ahead of time
feat(infra): hosts and company boxes get a full vCPU, and the fleet r…
feat(infra): a second spend alert, its own budget, when the month's f…
docs(whats-new): patches with server code open faster (#1050)