Commit bde0ab9
`packages/cli` has built with `tsc -p tsconfig.build.json` since the oclif
migration (bbea22f, 2026-02-18), which in one commit switched `build` from
`tsup` to `tsc`, introduced `oclif.commands.target: "./dist/commands"`, and
pointed the `bin` field at the new `bin/run.js`. The tsup config was left
behind by that commit and has never been invoked since.
It was not inert, though. It declared `clean: true` with only `src/bin.ts` and
`src/index.ts` as entries, so running the obvious `tsup` next to a
`tsup.config.ts` wipes `dist/` and emits no `dist/commands/**` — leaving a CLI
that resolves zero commands, the "command not found" signature
`scripts/cli-build-prerequisite.mjs` exists to classify.
Removed:
- `packages/cli/tsup.config.ts` — invoked by no script, no turbo task, no CI
step and no doc; in no tsc program either (the package tsconfig is
`include: ["src"]`, the root one excludes `packages`).
- `packages/cli/src/bin.ts` — the carcass of the pre-oclif Commander entry
point, gutted to a 13-line re-export by dd1e67b in the same migration.
Its only referrer repo-wide was the tsup entry above.
- the `tsup` devDependency — the config's import was its only use in the
package.
Verified by comparing the command surface oclif actually resolves (via
`Config.load`) before and after: identical, 60 commands and 68 topics, same
flags and aliases. The sole build-output difference is that `dist/bin.js` is
no longer emitted.
Claude-Session: https://claude.ai/code/session_019bmVFqoQPq63zhKrxdYG1r
Co-authored-by: Claude <noreply@anthropic.com>
1 parent d5e7b9f commit bde0ab9
5 files changed
Lines changed: 21 additions & 40 deletions
File tree
- .changeset
- packages/cli
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments