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 — fix(global): run npm view in global mode (#2438) · voidzero-dev/vite-plus@858ed05

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • crates
    • vp_cli_snapshots/tests/cli_snapshots/fixtures/command_update_global_dev_engines
      • package.json
      • snapshots.toml
      • snapshots
        • command_update_global_dev_engines.md
    • vp_global_cli/src/commands/global
      • mod.rs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_update_global_dev_engines/package.json‎

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "command-update-global-dev-engines",
3+
"devEngines": {
4+
"packageManager": {
5+
"name": "pnpm",
6+
"version": "11.20.0",
7+
"onFail": "download"
8+
}
9+
}
10+
}
Collapse file

‎crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_update_global_dev_engines/snapshots.toml‎

Copy file name to clipboard
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[[case]]
2+
name = "command_update_global_dev_engines"
3+
vp = "global"
4+
comment = "Global updates ignore the current project's package-manager requirement."
5+
steps = [
6+
{ argv = ["vp", "install", "-g", "[email protected]"], snapshot = false, continue-on-failure = true },
7+
{ tty = false, argv = ["vp", "update", "-g", "--latest"], continue-on-failure = true },
8+
]
9+
after = [
10+
{ argv = ["vp", "remove", "-g", "testnpm2"], continue-on-failure = true },
11+
]
Collapse file

‎crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_update_global_dev_engines/snapshots/command_update_global_dev_engines.md‎

Copy file name to clipboard
+13Lines changed: 13 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# command_update_global_dev_engines
2+
3+
Global updates ignore the current project's package-manager requirement.
4+
5+
## `vp install -g [email protected]`
6+
7+
8+
## `vp update -g --latest`
9+
10+
```
11+
info: Updating 1 global package with Node.js <version>
12+
✓ Updated testnpm2 to 1.0.1
13+
```
Collapse file

‎crates/vp_global_cli/src/commands/global/mod.rs‎

Copy file name to clipboardExpand all lines: crates/vp_global_cli/src/commands/global/mod.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async fn npm_view(
6161
field: &str,
6262
) -> Result<Vec<u8>, Error> {
6363
let output = Command::new(npm_path.as_path())
64-
.args(["view", package_spec, field, "--json"])
64+
.args(["view", "-g", package_spec, field, "--json"])
6565
.env("PATH", format_path_prepended(node_bin_dir.as_path()))
6666
.stdout(Stdio::piped())
6767
.stderr(Stdio::piped())

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.