GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(pm): add `patch` and `patch-commit` commands by jong-kyung · Pull Request #2144 · voidzero-dev/vite-plus

Conversation

@jong-kyung

@jong-kyung jong-kyung commented Jul 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@netlify

netlify Bot commented Jul 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit f6ebe81
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a701e11e3e0080008671ebd
😎 Deploy Preview https://deploy-preview-2144--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jong-kyung jong-kyung self-assigned this Jul 10, 2026
@jong-kyung
feat(pm): add patch commands
9743444
Normalize patch and patch-commit across pnpm, Yarn Berry, and Bun while warning for unsupported package managers.
@jong-kyung
jong-kyung force-pushed the feat/pm-patch branch from 50daf4e to 5c588f5 Compare July 10, 2026 12:44
@jong-kyung

jong-kyung commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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[bot]
chatgpt-codex-connector Bot reviewed Jul 10, 2026
View reviewed changes

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

Copy link
Copy Markdown

There was a problem hiding this comment.

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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread crates/vite_install/src/commands/patch_commit.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jong-kyung
test(snapshots): cover pm patch commands
6e43d26
@jong-kyung
jong-kyung force-pushed the feat/pm-patch branch from 5c588f5 to 6e43d26 Compare July 10, 2026 12:56
@jong-kyung
jong-kyung marked this pull request as ready for review July 10, 2026 13:02
@jong-kyung
Merge branch 'main' into feat/pm-patch
bfceb06
@jong-kyung
jong-kyung requested a review from fengmk2 July 10, 2026 13:02
jong-kyung added 3 commits July 10, 2026 23:15
@jong-kyung
Merge branch 'main' into feat/pm-patch
b13638c
@jong-kyung
Merge branch 'main' into feat/pm-patch
4d3ad8a
@jong-kyung
Merge branch 'main' into feat/pm-patch
9d2a068
@jong-kyung
jong-kyung requested a review from wan9chi July 13, 2026 02:08
jong-kyung added 14 commits July 15, 2026 17:57
@jong-kyung
Merge branch 'main' into feat/pm-patch
05ff735
@jong-kyung
Merge branch 'main' into feat/pm-patch
e9c8b1b
@jong-kyung
Merge branch 'main' into feat/pm-patch
81221f7
@jong-kyung
Merge branch 'main' into feat/pm-patch
2ede122
@jong-kyung
Merge branch 'main' into feat/pm-patch
8731a5a
@jong-kyung
Merge branch 'main' into feat/pm-patch
6e69b1a
@jong-kyung
Merge branch 'main' into feat/pm-patch
d83a451
@jong-kyung
Merge branch 'main' into feat/pm-patch
cdaaaea
@jong-kyung
Merge branch 'main' into feat/pm-patch
7e9674a
@jong-kyung
Merge branch 'main' into feat/pm-patch
1f9409a
@jong-kyung
Merge branch 'main' into feat/pm-patch
4d0a412
@jong-kyung
Merge branch 'main' into feat/pm-patch
093975b
@jong-kyung
Merge branch 'main' into feat/pm-patch
e8b7511
@jong-kyung
Merge branch 'main' into feat/pm-patch
52c6f9a
fengmk2
fengmk2 reviewed Jul 31, 2026
View reviewed changes
Comment thread ...es/vite_cli_snapshots/tests/cli_snapshots/fixtures/pm_patch/snapshots/pm_patch_yarn_berry.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

jong-kyung added 4 commits July 31, 2026 13:48
@jong-kyung
test(pm): replace invalid patch version probes
e91f0ef
Keep successful CLI snapshots for patch help while verifying native
pass-through argument construction with focused unit tests.
@jong-kyung
Merge branch 'main' into feat/pm-patch
3a55e82
@jong-kyung
Merge branch 'main' into feat/pm-patch
ea618a7
@jong-kyung
Merge branch 'main' into feat/pm-patch
f6ebe81
@jong-kyung

jong-kyung commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator Author

Closing in favor of a fresh branch — #2140 restructured the pm infrastructure, so rebasing would mean rewriting anyway.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jong-kyung jong-kyung closed this Aug 3, 2026
@jong-kyung
jong-kyung deleted the feat/pm-patch branch August 3, 2026 09:42
@jong-kyung jong-kyung mentioned this pull request Aug 3, 2026
feat(pm): add patch and patch-commit commands #2308
Merged
fengmk2 added a commit that referenced this pull request Aug 3, 2026
@jong-kyung @fengmk2
feat(pm): add patch and patch-commit commands (#2308)
54f9cfc
## Summary

Adds `vp pm patch` and `vp pm patch-commit` commands, resolved per
package manager through the `resolution/commands` layer.

| Package manager | `vp pm patch <pkg>` | `vp pm patch-commit <dir>` |
| --- | --- | --- |
| pnpm | `pnpm patch <pkg>` | `pnpm patch-commit <dir>` |
| bun | `bun patch <pkg>` | `bun patch --commit <dir>` |
| Yarn Berry | `yarn patch <pkg>` | `yarn patch-commit <dir>` |
| npm / Yarn Classic | warns and exits successfully
(`UnsupportedCommandNoop`) | same |

Both commands forward `-- <args>` pass-through arguments and require a
project (`RequireProject` manager policy).

Supersedes #2144, reimplemented on top of the package manager
infrastructure consolidation in #2140.

---------

Co-authored-by: MK (fengmk2) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@fengmk2 fengmk2 fengmk2 left review comments
@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@wan9chi wan9chi Awaiting requested review from wan9chi

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@jong-kyung jong-kyung

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@jong-kyung @fengmk2
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.