Uh oh!
There was an error while loading. Please reload this page.
feat(pm): add patch and patch-commit commands - #2144
Conversation
✅ Deploy Preview for viteplus-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Normalize patch and patch-commit across pnpm, Yarn Berry, and Bun while warning for unsupported package managers.
jong-kyung
commented
Jul 10, 2026
@codex review |
patch and patch-commit commandsThere was a problem hiding this comment.
💡 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".
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Keep successful CLI snapshots for patch help while verifying native pass-through argument construction with focused unit tests.
jong-kyung
commented
Aug 3, 2026
Closing in favor of a fresh branch — #2140 restructured the pm infrastructure, so rebasing would mean rewriting anyway. |
## 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) <fengmk2@gmail.com>
Summary
vp pmcan now prepare and commit dependency patches through a consistent command surface for pnpm, Yarn Berry, and Bun.The implementation translates
vp pm patch-committo Bun’spatch --commitform while preserving the nativepatch-commitcommand for pnpm and Yarn Berry. npm and Yarn Classic emit a clear warning and exit successfully because they do not support dependency patching.