Commit 63ba83a190

63ba83a19075c3347a35f0351064408dd666a6dc

parent: fac5a7a342

Unsigned

cmc <hello@cleberg.net> · 2026-08-21 04:39 UTC

Generate Workers types before typechecking

worker-configuration.d.ts is gitignored but listed in tsconfig's "types",
so tsc fails on any fresh checkout with TS2688. Caught by the first CI run
on this branch, which is the workflow doing its job.

Layout: unified · split

.github/workflows/ci.yml +6
@@ -21,6 +21,12 @@ jobs:
2121
2222 - run: npm ci
2323
24 # worker-configuration.d.ts is generated, not committed, and tsconfig
25 # lists it under "types" — so tsc cannot run on a fresh checkout without
26 # this. Needs no Cloudflare credentials; it reads wrangler.jsonc.
27 - name: Generate Workers types
28 run: npm run types
29
2430 # The engine is TypeScript on Workers types; a type error is a deploy
2531 # that fails in Cloudflare's build rather than here.
2632 - name: Typecheck