Commit fb4788b
committed
build: emit @loopover/contract before anything that typechecks or bundles src/
src/mcp/server.ts and packages/loopover-mcp both import @loopover/contract, whose
package exports resolve to dist/ -- so every surface that typechecks or bundles
src/ needs it emitted first, and nothing did. CI's Typecheck and UI typecheck
failed on exactly this, and the selfhost image would have failed at esbuild
resolution: the Dockerfile builds the engine but had no step for contract, so
build-selfhost.ts could not have resolved the import.
Adds the build to ci.yml (before the engine step), the Dockerfile, selfhost.yml
and release-selfhost.yml. Unconditional rather than path-gated: every consumer
(backend, mcp, miner, ui) can pull it into the typecheck surface, and a zod-only
leaf with no workspace dependencies is cheap enough that gating buys nothing but a
class of skipped-build failures. Same shape as the engine build-order fix, applied
before that step for the same reason.
Verified by running build-selfhost.ts --all against a clean contract build.
Refs #95171 parent d2cb76c commit fb4788b
4 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
470 | 478 | | |
471 | 479 | | |
472 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments