Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9743444
feat(pm): add patch commands
jong-kyung Jul 10, 2026
6e43d26
test(snapshots): cover pm patch commands
jong-kyung Jul 10, 2026
bfceb06
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 10, 2026
b13638c
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 10, 2026
4d3ad8a
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 10, 2026
9d2a068
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 10, 2026
05ff735
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 15, 2026
e9c8b1b
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 15, 2026
81221f7
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 16, 2026
2ede122
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 17, 2026
8731a5a
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 20, 2026
6e69b1a
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 20, 2026
d83a451
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 21, 2026
cdaaaea
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 22, 2026
7e9674a
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 25, 2026
1f9409a
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 27, 2026
4d0a412
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 28, 2026
093975b
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 30, 2026
e8b7511
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 30, 2026
52c6f9a
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 31, 2026
e91f0ef
test(pm): replace invalid patch version probes
jong-kyung Jul 31, 2026
3a55e82
Merge branch 'main' into feat/pm-patch
jong-kyung Jul 31, 2026
ea618a7
Merge branch 'main' into feat/pm-patch
jong-kyung Aug 2, 2026
f6ebe81
Merge branch 'main' into feat/pm-patch
jong-kyung Aug 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ Forward a command to the package manager
Commands:
approve-builds Approve dependency lifecycle scripts (install/postinstall) to run
prune Remove unnecessary packages
patch Prepare a package for local patching
patch-commit Commit a prepared package patch
pack Create a tarball of the package
list List installed packages [alias: ls]
view, info, show View package information from the registry
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "pm-patch-bun",
"version": "1.0.0",
"private": true,
"license": "MIT",
"packageManager": "bun@1.3.5"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "pm-patch-npm",
"version": "1.0.0",
"private": true,
"license": "MIT",
"packageManager": "npm@11.11.1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "pm-patch-pnpm",
"version": "1.0.0",
"private": true,
"license": "MIT",
"packageManager": "pnpm@10.34.4"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[[case]]
name = "pm_patch_npm"
vp = "local"
cwd = "npm"
steps = [
{ argv = ["vp", "pm", "patch", "placeholder"], comment = "npm warns and exits successfully because patch is unsupported" },
{ argv = ["vp", "pm", "patch-commit", "placeholder"], comment = "npm warns and exits successfully because patch-commit is unsupported" },
]

[[case]]
name = "pm_patch_pnpm"
vp = "local"
cwd = "pnpm"
steps = [
{ argv = ["vp", "pm", "patch", "placeholder", "--", "--version"], comment = "pnpm receives the patch command" },
{ argv = ["vp", "pm", "patch-commit", "placeholder", "--", "--version"], comment = "pnpm receives the patch-commit command" },
]

[[case]]
name = "pm_patch_yarn"
vp = "local"
cwd = "yarn"
steps = [
{ argv = ["vp", "pm", "patch", "placeholder"], comment = "Yarn Classic warns and exits successfully because patch is unsupported" },
{ argv = ["vp", "pm", "patch-commit", "placeholder"], comment = "Yarn Classic warns and exits successfully because patch-commit is unsupported" },
]

[[case]]
name = "pm_patch_yarn_berry"
vp = "local"
cwd = "yarn_berry"
steps = [
{ argv = ["vp", "pm", "patch", "--help"], comment = "Vite+ exposes the patch command" },
{ argv = ["vp", "pm", "patch-commit", "--help"], comment = "Vite+ exposes the patch-commit command" },
]

[[case]]
name = "pm_patch_bun"
vp = "local"
cwd = "bun"
steps = [
{ argv = ["vp", "pm", "patch", "--help"], comment = "Vite+ exposes the patch command" },
{ argv = ["vp", "pm", "patch-commit", "--help"], comment = "Vite+ exposes the patch-commit command" },
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# pm_patch_bun

## `vp pm patch --help`

Vite+ exposes the patch command

```
Prepare a package for local patching

Usage: vp pm patch <PACKAGE> [-- <PASS_THROUGH_ARGS>...]

Arguments:
<PACKAGE> Package to patch
[PASS_THROUGH_ARGS]... Additional arguments

Options:
-h, --help Print help
```

## `vp pm patch-commit --help`

Vite+ exposes the patch-commit command

```
Commit a prepared package patch

Usage: vp pm patch-commit <PATCH_DIR> [-- <PASS_THROUGH_ARGS>...]

Arguments:
<PATCH_DIR> Patch directory to commit
[PASS_THROUGH_ARGS]... Additional arguments

Options:
-h, --help Print help
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# pm_patch_npm

## `vp pm patch placeholder`

npm warns and exits successfully because patch is unsupported

```
warn: npm does not have a patch command.
```

## `vp pm patch-commit placeholder`

npm warns and exits successfully because patch-commit is unsupported

```
warn: npm does not have a patch-commit command.
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# pm_patch_pnpm

## `vp pm patch placeholder -- --version`

pnpm receives the patch command

```
10.34.4
```

## `vp pm patch-commit placeholder -- --version`

pnpm receives the patch-commit command

```
10.34.4
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# pm_patch_yarn

## `vp pm patch placeholder`

Yarn Classic warns and exits successfully because patch is unsupported

```
warn: yarn classic does not have a patch command.
```

## `vp pm patch-commit placeholder`

Yarn Classic warns and exits successfully because patch-commit is unsupported

```
warn: yarn classic does not have a patch-commit command.
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# pm_patch_yarn_berry

## `vp pm patch --help`

Vite+ exposes the patch command

```
Prepare a package for local patching

Usage: vp pm patch <PACKAGE> [-- <PASS_THROUGH_ARGS>...]

Arguments:
<PACKAGE> Package to patch
[PASS_THROUGH_ARGS]... Additional arguments

Options:
-h, --help Print help
```

## `vp pm patch-commit --help`

Vite+ exposes the patch-commit command

```
Commit a prepared package patch

Usage: vp pm patch-commit <PATCH_DIR> [-- <PASS_THROUGH_ARGS>...]

Arguments:
<PATCH_DIR> Patch directory to commit
[PASS_THROUGH_ARGS]... Additional arguments

Options:
-h, --help Print help
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "pm-patch-yarn",
"version": "1.0.0",
"private": true,
"license": "MIT",
"packageManager": "yarn@1.22.22"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "pm-patch-yarn-berry",
"version": "1.0.0",
"private": true,
"license": "MIT",
"packageManager": "yarn@4.12.0"
}
2 changes: 2 additions & 0 deletions crates/vite_install/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ pub mod logout;
pub mod outdated;
pub mod owner;
pub mod pack;
pub mod patch;
pub mod patch_commit;
pub mod ping;
pub mod prune;
pub mod publish;
Expand Down
Loading
Loading