Commit 1642c76
authored
feat(cli): implement
Add `vpx` as a standalone binary (symlink to `vp`) that checks local
`node_modules/.bin` first, then falls back to `vp dlx` for remote
download. This is analogous to how `npx` works.
- Local binary lookup walks up from cwd checking node_modules/.bin
- Version specs (e.g., `eslint@9`) skip local lookup and go remote
- Supports --package/-p, --shell-mode/-c, --silent/-s flags
- Shim created by `vp env setup` alongside node/npm/npx
- On Windows, uses `vp env exec vpx` pattern like other shimsvpx command for local-first package execution (#578)1 parent e3502b6 commit 1642c76
9 files changed
Lines changed: 1305 additions & 9 deletions
File tree
- crates/vite_global_cli/src
- commands
- env
- shim
- packages/global/snap-tests/command-vpx-pnpm10
- rfcs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| |||
0 commit comments