Agent Skills
› voidzero-dev/vite-plus
› sync-tsdown-cli
sync-tsdown-cli
GitHub对比tsdown与vp pack的CLI选项差异并同步。升级tsdown或检查漂移时触发,通过脚本获取帮助、读取代码、新增选项并保留注释以处理移除项,最后验证构建及快照。
触发场景
tsdown版本升级
检查tsdown与vp pack CLI选项漂移
安装
npx skills add voidzero-dev/vite-plus --skill sync-tsdown-cli -g -y
SKILL.md
Frontmatter
{
"name": "sync-tsdown-cli",
"description": "Compare tsdown CLI options with vp pack and sync any new or removed options. Use when tsdown is upgraded or when you need to check for CLI option drift between tsdown and vp pack.",
"allowed-tools": "Read, Grep, Glob, Edit, Bash"
}
Sync tsdown CLI Options with vp pack
Compare the upstream tsdown CLI options with vp pack (defined in packages/cli/src/pack-bin.ts) and sync any differences.
Steps
- Run
npx tsdown --helpfrompackages/cli/to get tsdown's current CLI options - Read
packages/cli/src/pack-bin.tsto see vp pack's current options - Compare and add any new tsdown options to
pack-bin.tsusing the existing cac.option()pattern - If tsdown removed options, do NOT remove them from
pack-bin.ts-- instead add a code comment like// NOTE: removed from tsdown CLI in vX.Y.Zabove the option so reviewers can decide whether to follow up - Preserve intentional differences:
-c, --configis intentionally commented out (vp pack uses vite.config.ts)--env-prefixhas a different default (['VITE_PACK_', 'TSDOWN_'])
- Verify with
pnpm --filter vite-plus build-tsandvp pack -h - If new parameters were added, add a corresponding PTY snapshot case under
crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/to verify the new option works correctly
版本历史
- a24eede 当前 2026-07-24 11:29


