Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
@@ -0,0 +1,10 @@
{
"name": "command-update-global-dev-engines",
"devEngines": {
"packageManager": {
"name": "pnpm",
"version": "11.20.0",
"onFail": "download"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[case]]
name = "command_update_global_dev_engines"
vp = "global"
comment = "Global updates ignore the current project's package-manager requirement."
steps = [
{ argv = ["vp", "install", "-g", "testnpm2@1.0.0"], snapshot = false, continue-on-failure = true },
{ tty = false, argv = ["vp", "update", "-g", "--latest"], continue-on-failure = true },
]
after = [
{ argv = ["vp", "remove", "-g", "testnpm2"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# command_update_global_dev_engines

Global updates ignore the current project's package-manager requirement.

## `vp install -g testnpm2@1.0.0`


## `vp update -g --latest`

```
info: Updating 1 global package with Node.js <version>
✓ Updated testnpm2 to 1.0.1
```
2 changes: 1 addition & 1 deletion crates/vp_global_cli/src/commands/global/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async fn npm_view(
field: &str,
) -> Result<Vec<u8>, Error> {
let output = Command::new(npm_path.as_path())
.args(["view", package_spec, field, "--json"])
.args(["view", "-g", package_spec, field, "--json"])
.env("PATH", format_path_prepended(node_bin_dir.as_path()))
.stdout(Stdio::piped())
.stderr(Stdio::piped())
Expand Down
Loading