-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
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 thescriptcommands inside thepackage.jsonfile. - Open the terminal and run
vp run wrangler. - Verify the
error: Command 'dlx' not foundoutput 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
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels