Skip to content

feat(pm): add patch and patch-commit commands#2144

Open
jong-kyung wants to merge 6 commits into
voidzero-dev:mainfrom
jong-kyung:feat/pm-patch
Open

feat(pm): add patch and patch-commit commands#2144
jong-kyung wants to merge 6 commits into
voidzero-dev:mainfrom
jong-kyung:feat/pm-patch

Conversation

@jong-kyung

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

Copy link
Copy Markdown
Collaborator

Summary

vp pm can now prepare and commit dependency patches through a consistent command surface for pnpm, Yarn Berry, and Bun.

The implementation translates vp pm patch-commit to Bun’s patch --commit form while preserving the native patch-commit command for pnpm and Yarn Berry. npm and Yarn Classic emit a clear warning and exit successfully because they do not support dependency patching.

Reference
Yarn Berry : https://yarnpkg.com/cli/patch
Pnpm : https://pnpm.io/cli/patch
Bun : https://bun.com/docs/pm/cli/patch

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 9d2a068
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a51135ebb7a530008e6c208

@jong-kyung jong-kyung self-assigned this Jul 10, 2026
Normalize patch and patch-commit across pnpm, Yarn Berry, and Bun while warning for unsupported package managers.
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@jong-kyung jong-kyung changed the title feat(pm): add patch and patch-commit commands feat(pm): add patch and patch-commit commands 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: 5c588f5e82

ℹ️ 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/patch_commit.rs
@jong-kyung jong-kyung marked this pull request as ready for review July 10, 2026 13:02
@jong-kyung jong-kyung requested a review from fengmk2 July 10, 2026 13:02
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