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:
21 21
22 - run: npm ci 22 - run: npm ci
23 23
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
24 # The engine is TypeScript on Workers types; a type error is a deploy 30 # The engine is TypeScript on Workers types; a type error is a deploy
25 # that fails in Cloudflare's build rather than here. 31 # that fails in Cloudflare's build rather than here.
26 - name: Typecheck 32 - name: Typecheck