Run the CLI build through the parse its test drives, and name each npm entry's build step
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- build.ts' entry now reads Stdio's args and hands them to parseBuild, so the command line the flags test drives (--version, --targets, the built-in --version left out) is the one `bun build.ts` runs, not a second copy of Command.run with its own CliConfig. - Each tsdown entry runs as its own step (`tsdown bin`, `tsdown protocol, rules`, `tsdown pi`), so a BuildFailed says which entry broke. - release.test.ts: sort the effect import (Layer before Option). - Checked by hand: `bun build.ts --help` lists --version as a value flag; `bun run build -- --version 9.9.9-test` then node dist/bin.js, bun dist/bin.js and dist/bin/<cli> each print v9.9.9-test. dist/ is ignored. - No new tests: the existing flags, define and release-step cases cover the changed lines.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+10 added−6 removed
- tests:+1 added−1 removed
- other:+9 added−5 removed