Findings No. 111
tsc could not find `@barmark/engraver` without a build
tsc could not resolve `@barmark/engraver` without a prior build until `paths` pointed at committed source types, held in place by a test.
The claim is that tsc could not find @barmark/engraver without a build. Running bun run check in a clean checkout, with no dist/ built, failed the way CI's check job would also fail: packages/score/src/worker.ts reported Cannot find module '@barmark/engraver' (TS2307), because import("@barmark/engraver") resolves through the package's exports to dist/index.d.mts, a file only a build writes. The root tsconfig.json mapped @barmark/engraver/info to its source but never mapped the package root itself, so on the VM, where packages/engraver/dist/ happened to already be built, tsc quietly found types there and the gap stayed hidden until checked in a bare git archive copy with no dist/ at all.
The fix maps @barmark/engraver in paths to ./packages/engraver/src/index.d.mts, the committed types, so checking the project never depends on a prior build. A committed-state test in packages/engraver/tests/ci.test.ts holds both the mapping and the file in place, confirmed by running the check against a git archive copy: it failed before the mapping existed and passed after.
The general rule: a "no build" check has to prove it is testing a no-build state, by moving every dist/ aside or running in a fresh checkout that never had one, rather than trusting whichever machine happens to have stale output already sitting there.
Receipt: Barmark (tsconfig.json, packages/engraver/tests/ci.test.ts, packages/score/src/worker.ts).