Skip to content

feat(upgrade): add CLI self-update command - #69

Merged
lonewolfyx merged 2 commits into
mainfrom
feat/upgrade-command
Sep 13, 2026
Merged

feat(upgrade): add CLI self-update command#69
lonewolfyx merged 2 commits into
mainfrom
feat/upgrade-command

Conversation

@lonewolfyx

Copy link
Copy Markdown
Member

Summary

  • implement the upgrade command for updating the global @antdv-next/cli installation
  • support npm, pnpm, Yarn, and Bun with explicit selection or automatic detection
  • preserve --version for the CLI version and --ver for the target antdv-next version
  • support text, Markdown, and JSON output with post-upgrade version verification

Testing

  • node node_modules/eslint/bin/eslint.js .
  • node node_modules/vitest/vitest.mjs run
  • node node_modules/tsdown/dist/run.mjs
  • node bin/antdv.js --version
  • node bin/antdv.js upgrade --help
  • git diff --check

@pkg-pr-new

pkg-pr-new Bot commented Sep 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@antdv-next/cli@69

commit: 1393c8a

@github-actions

Copy link
Copy Markdown
Contributor

Build Size Report

Baseline Artifact · 基准产物

File Size Gzip Brotli
index.mjs 494.19 KiB 141.59 KiB 120.42 KiB

Candidate Artifact · 候选产物

File Size Gzip Brotli
index.mjs 497.28 KiB 142.66 KiB 121.40 KiB

@lonewolfyx lonewolfyx mentioned this pull request Sep 13, 2026
15 tasks
@lonewolfyx
lonewolfyx merged commit 44bba35 into main Sep 13, 2026
8 checks passed
@lonewolfyx
lonewolfyx deleted the feat/upgrade-command branch September 13, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant