You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci(typecheck): every package type-checks or is ledgered — the tsup hole becomes a ratchet (#4311)
66 of 77 workspace packages build with tsup (esbuild transpile, no type
check), vitest never type-checks, and the CI typecheck job covered four
targets — so for most packages nothing read src/ or the tests with tsc
at all. #4311 measured the hole: 380 code-tier errors across 18 packages,
241 of them driver-sql tests feeding authored-shape literals into the
freshly narrowed QueryAST.
Re-measured per-package `tsc --noEmit` on main @ e5a4d26; aggregates
match the issue exactly (48 clean / 29 failing / 1 no-tsconfig):
- The 48 clean packages (42 new scripts + 6 pre-existing) now declare
`typecheck`, run by a new `turbo run typecheck` task (dependsOn ^build)
wired into lint.yml's typecheck job after the workspace build. The
clean set is locked against regression from today.
- The 29 failing ones (858 raw errors) are frozen in a DEBT ledger in
scripts/check-type-check-coverage.mjs, each entry carrying its measured
count and the issue's code/config/noise triage so a config-tier pile
(types: 107, core: 91-with-3-real) is never mistaken for real breakage
or the reverse (driver-sql: 241, all real). @objectstack/console is
EXEMPT: no TypeScript sources.
- The coverage gate (self-tested, reconciled in both directions) fails
when a package is neither covered nor ledgered, when a ledger entry
goes stale, or when the turbo task / root aggregator / CI step is
deleted — the ledger can only shrink.
Root `pnpm typecheck` aggregates the task locally; AGENTS.md documents
the ratchet. Empty changeset: dev scripts and CI only, releases nothing.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011m13wbaZziPveBdtQthrXd
ci(dx): every workspace package now either declares a `typecheck` script (`tsc --noEmit`, run by the new `turbo run typecheck` task in the lint workflow) or carries a measured DEBT/EXEMPT entry in `scripts/check-type-check-coverage.mjs`, whose coverage ratchet runs in CI (#4311). 66 of 77 packages build with tsup, which transpiles without type-checking, and `vitest run` does not type-check either — 48 packages were already clean and are locked in; the 29 failing ones are frozen in the ledger with their raw error counts and the issue's code/config/noise triage. Dev scripts and CI only; releases nothing.
0 commit comments