Sync tsdown CLI
Runtime options live in packages/cli/src/pack-bin.ts; static help lives in
packages/cli/src/help.ts.
- Run
npx tsdown --helpfrompackages/cli/and compare it withpack-bin.ts. - Add new forwarded options using the existing cac
.option()pattern. For removed options, add// NOTE: removed from tsdown CLI in vX.Y.Zfor reviewer follow-up. - Preserve runtime differences:
-c, --configstays disabled because Vite+ usesvite.config.ts, and--env-prefixkeeps the['VITE_PACK_', 'TSDOWN_']default. - For static labels and descriptions, follow
sync-upstream-cli-help; do not adapt upstream wording to explain runtime differences. - Run
pnpm --filter vite-plus build-tsandvp pack -h. Add a focused PTY snapshot case undercrates/vp_cli_snapshots/tests/cli_snapshots/fixtures/when a new runtime option is exposed.