Commit 9a6b621
add(ci): run the Worker's type-check and assertions
A proposal, and deliberately the last commit: adding a gate to this repo's CI
is the maintainer's call, so drop this one and everything before it still
stands. The one line elsewhere that names the job — a sentence in CLAUDE.md —
is inside this commit for that reason.
mcp/ is a separate package with its own lockfile, so the build job never
touched it: the root `npm ci` doesn't install it, and both eslint.config.js and
.prettierignore exclude mcp/ deliberately. Its type-check had never run in CI at
all. A second job keeps a Worker failure reading distinctly from a site-build
failure. The build job is unchanged.
build:data is an explicit step: src/index.ts imports the generated, gitignored
src/data.json, so `tsc --noEmit` fails with TS2307 on a clean checkout. pretest
would regenerate it, but relying on that makes step order quietly load-bearing.
The runner is pinned to 22.15 rather than the build job's 22: ts-resolve-hook
.mjs needs node:module's registerHooks, added there. `22` resolves to something
newer today, so this only matters the day it doesn't — and the failure it
prevents is a link-time missing export with nothing to point at.
Not added to .githooks/pre-commit: that fires on every commit, almost none of
which touch mcp/, and it would need this package's separate dependency tree.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JFy2qPKK546AEFGixoxYoE1 parent 71c1253 commit 9a6b621
2 files changed
Lines changed: 42 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments