Skip to content

Commit caf61af

Browse files
MahmoodKhalil57claudefengmk2
authored
fix(env): check vpx shim in vp env doctor (#876)
## Summary - `vp env setup` creates shims for `["node", "npm", "npx", "vpx"]` - `vp env doctor` only checked `["node", "npm", "npx"]`, missing `vpx` - A broken or missing `vpx` shim was invisible to the doctor Fixes #880 One-line change in `crates/vite_global_cli/src/commands/env/doctor.rs`. ## Context `setup.rs:24` defines: ```rust const SHIM_TOOLS: &[&str] = &["node", "npm", "npx", "vpx"]; ``` But `doctor.rs:25` had: ```rust const SHIM_TOOLS: &[&str] = &["node", "npm", "npx"]; ``` This also means the PATH section's tool-resolution check (line 373) skipped `vpx`. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>
1 parent 28dc207 commit caf61af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/vite_global_cli/src/commands/env

crates/vite_global_cli/src/commands/env/doctor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const KNOWN_VERSION_MANAGERS: &[(&str, &str)] = &[
2222
];
2323

2424
/// Tools that should have shims
25-
const SHIM_TOOLS: &[&str] = &["node", "npm", "npx"];
25+
const SHIM_TOOLS: &[&str] = &["node", "npm", "npx", "vpx"];
2626

2727
/// Column width for left-side keys in aligned output
2828
const KEY_WIDTH: usize = 18;

0 commit comments

Comments
 (0)