Describe the bug
Running the following directly works as intended:
- ✅
vpx wrangler
- ✅
vp dlx wrangler
- ✅
vp exec wrangler
When extracting it into a package.json script it does not work anymore as intended.
Extracting as the following:
{
"scripts": {
"wrangler": "vp dlx wrangler"
}
}
Results in:
$> vp run wrangler
VITE+ - The Unified Toolchain for the Web
$ vp dlx wrangler ⊘ cache disabled
error: Command 'dlx' not found
Using vpx wrangler or vp exec wrangler on the other hand works when inside a package.json script.
This leads to the following when wrapped inside a script command in package.json:
- ✅
vpx wrangler
- ❌
vp dlx wrangler
- ✅
vp exec wrangler
Reproduction
https://github.com/voidzero-dev/vite-plus
Steps to reproduce
- Add
"wrangler": "vp dlx wrangler" to the script commands inside the package.json file.
- Open the terminal and run
vp run wrangler.
- Verify the
error: Command 'dlx' not found output in the terminal.
System Info
$> vp env current
VITE+ - The Unified Toolchain for the Web
Environment:
Version 24.14.0
Source engines.node
Tool Paths:
node /home/toddeTV/.vite-plus/js_runtime/node/24.14.0/bin/node
npm /home/toddeTV/.vite-plus/js_runtime/node/24.14.0/bin/npm
npx /home/toddeTV/.vite-plus/js_runtime/node/24.14.0/bin/npx
$> vp --version
VITE+ - The Unified Toolchain for the Web
vp v0.1.12
Local vite-plus:
vite-plus v0.1.12
Tools:
vite v8.0.0
rolldown v1.0.0-rc.9
vitest v4.1.0
oxfmt v0.40.0
oxlint v1.55.0
oxlint-tsgolint v0.17.0
tsdown v0.21.3
Environment:
Package manager pnpm v10.32.1
Node.js v24.x (engines.node)
Used Package Manager
pnpm
Logs
Validations
Describe the bug
Running the following directly works as intended:
vpx wranglervp dlx wranglervp exec wranglerWhen extracting it into a
package.jsonscript it does not work anymore as intended.Extracting as the following:
{ "scripts": { "wrangler": "vp dlx wrangler" } }Results in:
Using
vpx wranglerorvp exec wrangleron the other hand works when inside apackage.jsonscript.This leads to the following when wrapped inside a script command in
package.json:vpx wranglervp dlx wranglervp exec wranglerReproduction
https://github.com/voidzero-dev/vite-plus
Steps to reproduce
"wrangler": "vp dlx wrangler"to thescriptcommands inside thepackage.jsonfile.vp run wrangler.error: Command 'dlx' not foundoutput in the terminal.System Info
Used Package Manager
pnpm
Logs
Validations