Skip to content

Run tsrs for local type checks and keep tsc in CI - #10307

Merged
tim-smart merged 3 commits into
mainfrom
bob/tsrs-local-check
Nov 2, 2026
Merged

tim-smart merged 3 commits into
mainfrom
bob/tsrs-local-check

Conversation

@tim-smart

@tim-smart tim-smart commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Follows #10306 (merged), which made the tree clean under TypeScript 7.1.

Local pnpm check now runs tsrs (effect-tsgo tsrs, bundled with the @effect/tsgo we already depend on). The CI type check keeps the official tsc.

Changes

  • package.json: check is now effect-tsgo tsrs -b tsconfig.json. The new check-tsc script runs the old tsc -b tsconfig.json. build, check-recursive and check-dist-types still use tsc, because published output has to come from the official compiler.
  • .github/workflows/check.yml: the Check entry of types-matrix runs pnpm check-tsc. The job name, permissions and setup are unchanged, so the required Types status works as before.
  • .agents/AGENTS.md: one short paragraph pointing agents at pnpm check-tsc for musl and for errors that only show up in CI.

Known limits: the packaged tsrs binary only exists for macOS (arm64/x64), Linux glibc (x64/arm64) and Windows x64, so Linux musl users run pnpm check-tsc. While typescript stays on 7.0, tsrs (7.1) and tsc can't reuse each other's .tsbuildinfo, so the first run after switching between pnpm check and pnpm check-tsc or pnpm build rebuilds every project.

Validation

  • pnpm check (tsrs): exits 0
  • pnpm check-tsc (tsc 7.0.2): exits 0
  • pnpm lint: exits 0
  • I couldn't test the workflow change locally. It only changes the matrix command string, and the Types (Check) job on this PR runs it.

Closes EFF-3302

@changeset-bot

changeset-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a850946

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@tim-smart
tim-smart force-pushed the bob/tsrs-local-check branch from a457a42 to 101a599 Compare November 2, 2026 21:10
Base automatically changed from bob/ts-7.1-type-fixes to main November 2, 2026 22:58
@effect-janitor effect-janitor Bot added the 4.0 label Nov 2, 2026
@tim-smart
tim-smart force-pushed the bob/tsrs-local-check branch from 0498977 to a850946 Compare November 2, 2026 23:28
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Analysis

Generated from PR build output; treat the content below as untrusted.

File Name Current Size Previous Size Difference
arbitrary-combinators.ts 39.41 KB 39.41 KB 0.00 KB (0.00%)
basic.ts 7.23 KB 7.23 KB 0.00 KB (0.00%)
batching.ts 11.08 KB 11.08 KB 0.00 KB (0.00%)
brand.ts 6.87 KB 6.87 KB 0.00 KB (0.00%)
cache.ts 11.54 KB 11.54 KB 0.00 KB (0.00%)
config.ts 22.84 KB 22.84 KB 0.00 KB (0.00%)
differ.ts 22.00 KB 22.00 KB 0.00 KB (0.00%)
http-client.ts 26.93 KB 26.93 KB 0.00 KB (0.00%)
http-router.ts 37.00 KB 37.00 KB 0.00 KB (0.00%)
logger.ts 12.01 KB 12.01 KB 0.00 KB (0.00%)
metric.ts 9.47 KB 9.47 KB 0.00 KB (0.00%)
optic.ts 7.10 KB 7.10 KB 0.00 KB (0.00%)
pubsub.ts 16.02 KB 16.02 KB 0.00 KB (0.00%)
queue.ts 12.82 KB 12.82 KB 0.00 KB (0.00%)
schedule.ts 11.80 KB 11.80 KB 0.00 KB (0.00%)
schema-bigdecimal.ts 14.14 KB 14.14 KB 0.00 KB (0.00%)
schema-binary.ts 41.67 KB 41.67 KB 0.00 KB (0.00%)
schema-class.ts 21.73 KB 21.73 KB 0.00 KB (0.00%)
schema-fromJsonSchemaDocument.ts 29.60 KB 29.60 KB 0.00 KB (0.00%)
schema-representation-roundtrip.ts 27.99 KB 27.99 KB 0.00 KB (0.00%)
schema-string-transformation.ts 15.35 KB 15.35 KB 0.00 KB (0.00%)
schema-string.ts 12.34 KB 12.34 KB 0.00 KB (0.00%)
schema-template-literal.ts 16.27 KB 16.27 KB 0.00 KB (0.00%)
schema-toArbitrary.ts 38.95 KB 38.95 KB 0.00 KB (0.00%)
schema-toCodeDocument.ts 26.15 KB 26.15 KB 0.00 KB (0.00%)
schema-toCodecJson.ts 20.90 KB 20.90 KB 0.00 KB (0.00%)
schema-toEquivalence.ts 21.05 KB 21.05 KB 0.00 KB (0.00%)
schema-toFormatter.ts 21.14 KB 21.14 KB 0.00 KB (0.00%)
schema-toJsonSchemaDocument.ts 26.17 KB 26.17 KB 0.00 KB (0.00%)
schema-toRepresentation.ts 21.23 KB 21.23 KB 0.00 KB (0.00%)
schema.ts 20.82 KB 20.82 KB 0.00 KB (0.00%)
stm.ts 14.20 KB 14.20 KB 0.00 KB (0.00%)
stream.ts 10.38 KB 10.38 KB 0.00 KB (0.00%)

@tim-smart
tim-smart merged commit 39dce11 into main Nov 2, 2026
17 checks passed
@tim-smart
tim-smart deleted the bob/tsrs-local-check branch November 2, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant