Commit 2ce6ee9
ci: build terminal-mux-{core,control} before the typechecks that need them
Two typecheck steps fail in a clean checkout with TS2307 "Cannot find module":
"Typecheck @adhdev/terminal-mux-cli" (@adhdev/terminal-mux-core,
@adhdev/terminal-mux-control/{control-socket,storage}) and
"Typecheck @adhdev/daemon-standalone" (@adhdev/terminal-mux-control/api).
Cause is build ordering, not code: workspace imports resolve through each
package's `types`/`exports` — its dist/, not its src/ — and neither
terminal-mux-core nor terminal-mux-control was ever built in the test job.
This is invisible outside CI. Locally, and to Refinery (which runs from the root
worktree), dist/ already exists from earlier builds, so both typechecks pass. It
reproduces only in a clean checkout. It also stayed hidden across two release
attempts because an earlier test failure short-circuited the job before these
steps ran; fixing that failure is what exposed this one.
Build order follows the dependency graph: terminal-mux-core needs
session-host-core (already built above), terminal-mux-control needs both.
ghostty-vt-node is a terminal-mux-core dependency but needs no build step — it
ships prebuilt binaries and is handled by the existing artifact-download step.
Verified in an isolated clone with no root repo on the path: before, those two
typechecks failed; after building the two packages, both pass. Every other test
and typecheck step in the job was also run there and passes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UEd46KPgN8BctgE6RXyeNr1 parent 4f0a1c4 commit 2ce6ee9
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
172 | 186 | | |
173 | 187 | | |
174 | 188 | | |
175 | 189 | | |
176 | 190 | | |
177 | 191 | | |
| 192 | + | |
| 193 | + | |
178 | 194 | | |
179 | 195 | | |
180 | 196 | | |
| |||
0 commit comments