Skip to content

feat(pm): forward native version commands#2127

Merged
fengmk2 merged 17 commits into
voidzero-dev:mainfrom
jong-kyung:feat/pm-version
Jul 10, 2026
Merged

feat(pm): forward native version commands#2127
fengmk2 merged 17 commits into
voidzero-dev:mainfrom
jong-kyung:feat/pm-version

Conversation

@jong-kyung

@jong-kyung jong-kyung commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add vp pm version support by forwarding all arguments to the detected package manager's native version command.
  • Use <pm> version for npm, pnpm, and Yarn, and bun pm version for Bun.

Closes #2092

Reference
npm : https://docs.npmjs.com/cli/v11/commands/npm-version
Yarn1 : https://classic.yarnpkg.com/lang/en/docs/cli/version/
Yarn berry : https://yarnpkg.com/cli/version
Pnpm : https://pnpm.io/cli/version
Bun : https://bun.com/docs/pm/cli/pm#version

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 0e08154
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a509910da674a00089c5d5e

@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@jong-kyung jong-kyung self-assigned this Jul 10, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 54cb100765

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_pm_cli/src/handlers.rs
Comment thread crates/vite_install/src/commands/version.rs Outdated
Comment thread crates/vite_install/src/commands/version.rs Outdated
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 985c09b9b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_pm_cli/src/handlers.rs Outdated
Comment thread crates/vite_pm_cli/src/cli.rs Outdated
Comment thread crates/vite_pm_cli/src/handlers.rs Outdated
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7783e09033

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_install/src/commands/version.rs Outdated
Comment thread crates/vite_install/src/commands/version.rs
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b4f218bd5d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_install/src/commands/version.rs Outdated
Comment thread crates/vite_install/src/commands/version.rs
Comment thread crates/vite_pm_cli/src/cli.rs Outdated
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e62b4dde32

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_install/src/commands/version.rs Outdated
Comment thread crates/vite_install/src/commands/version.rs
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2d88894488

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_install/src/commands/version.rs
Comment thread crates/vite_pm_cli/src/handlers.rs
Comment thread crates/vite_pm_cli/src/cli.rs
@jong-kyung jong-kyung marked this pull request as ready for review July 10, 2026 04:40
@jong-kyung jong-kyung requested a review from fengmk2 July 10, 2026 04:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c6ceed152d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_install/src/commands/version.rs
@fengmk2

fengmk2 commented Jul 10, 2026

Copy link
Copy Markdown
Member

Can you add a snapshot test for each PM to ensure it's actually runnable?

@jong-kyung

jong-kyung commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Can you add a snapshot test for each PM to ensure it's actually runnable?

Sure, I added: 830db34
(new PTY test feels like magic 🫢)

@fengmk2 fengmk2 merged commit 9d3e77b into voidzero-dev:main Jul 10, 2026
51 checks passed
@jong-kyung jong-kyung mentioned this pull request Jul 10, 2026
4 tasks
@jong-kyung jong-kyung deleted the feat/pm-version branch July 10, 2026 09:27
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.

vp pm version does not work

2 participants