diff --git a/.agents/AGENTS.md b/.agents/AGENTS.md index e6450c28e1d..86f8a3b1bd6 100644 --- a/.agents/AGENTS.md +++ b/.agents/AGENTS.md @@ -30,6 +30,9 @@ assignability, rejection, or displayed public types. An ordinary source edit or exported declaration is covered by `pnpm check` unless compiler behavior is part of the task. +`pnpm check` runs tsrs (`effect-tsgo tsrs`), which tracks TypeScript 7.1. CI runs `pnpm check-tsc`, the +official `tsc`. Use `pnpm check-tsc` on Linux musl, or to reproduce a CI-only type error. + Never run bare `pnpm test` or `pnpm doctest`; both start the full suite in watch mode. Always pass `--run` and the specific files covering the change. CI runs the full suite. diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index bd8a84b2b14..9503c220515 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -51,9 +51,10 @@ jobs: fail-fast: false matrix: include: + # CI type checks with the official compiler; `pnpm check` runs tsrs locally. - name: Check deno: "" - command: pnpm check + command: pnpm check-tsc - name: Deno deno: v2.9.6 command: deno check . diff --git a/package.json b/package.json index 4531035d66b..57dcd56a22c 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "test-cluster": "vitest run --project cluster-integration", "doctest": "vitest --config vitest.docs.ts", "coverage": "vitest --coverage", - "check": "tsc -b tsconfig.json", + "check": "effect-tsgo tsrs -b tsconfig.json", + "check-tsc": "tsc -b tsconfig.json", "typeperf": "pnpm --dir packages/effect exec node typeperf/run.mjs", "typeperf-compare": "pnpm --dir packages/effect exec node typeperf/compare.mjs", "runtimeperf": "pnpm --dir packages/effect exec node runtimeperf/run.mts",