fix(macp): align exports + add CLI smoke test #415
Reference in New Issue
Block a user
Delete Branch "feat/mosaic-cli-smoke-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mission: cli-unification-20260404. Tasks: CU-05-09, CU-05-10.
Summary
1. Fix macp exports map — packages/macp/package.json had a pre-existing exports default pointing at src/index.ts while every other workspace package points at dist/index.js. This broke any consumer loading the compiled mosaic CLI via node (mosaic --help, mosaic forge --help). Discovered while running the CU-05-10 smoke test on a freshly-built dist/cli.js.
2. CU-05-10 CLI smoke test — packages/mosaic/src/cli-smoke.spec.ts asserts every register function from the eight sub-packages plus config attaches a top-level command to the root program and that its help output renders without throwing. 19 tests across 9 commands.
CU-05-09 verification
The wiring task is de facto complete. packages/mosaic/src/cli.ts already imports and calls all nine register functions. Each M5 sub-package PR landed its own wire.
Verification
Closes CU-05-09 and CU-05-10.