Skip to content

feat: add vp exec command for local node_modules/.bin execution#620

Merged
fengmk2 merged 2 commits intomainfrom
vp-exec
Feb 26, 2026
Merged

feat: add vp exec command for local node_modules/.bin execution#620
fengmk2 merged 2 commits intomainfrom
vp-exec

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Feb 24, 2026

Add vp exec as the equivalent of pnpm exec — prepends
./node_modules/.bin to PATH and executes a command. Commands resolve
through the modified PATH (local bins first, then system PATH), matching
pnpm exec's real behavior. No remote fallback unlike vpx.

Global CLI: delegates to local CLI when vite-plus is a dependency,
otherwise handles exec directly (prepend PATH + spawn).

Local CLI: prepends PM bin dir and node_modules/.bin to PATH, sets
VITE_PLUS_PACKAGE_NAME env var, supports --shell-mode/-c flag.

closes VP-194

@fengmk2 fengmk2 self-assigned this Feb 24, 2026
Copy link
Copy Markdown
Member Author

fengmk2 commented Feb 24, 2026

@fengmk2 fengmk2 force-pushed the vp-exec branch 2 times, most recently from 7bb2c1a to 5b55c81 Compare February 24, 2026 05:02
@linear
Copy link
Copy Markdown

linear Bot commented Feb 24, 2026

VP-194 Equivalent of `pnpm --filter <pkgname> exec some-cmd`

With pnpm, you can run pnpm --filter <pkgname> exec some-cmd (for example pnpm --filter voidzero/discord-reporter exec playwright install chromium --with-deps) without setting up a task. I couldn't replicate a similar behavior for vp at the moment. Is this something we want to support or is this out of scope?

@fengmk2 fengmk2 changed the base branch from main to graphite-base/620 February 24, 2026 09:07
@fengmk2 fengmk2 changed the base branch from graphite-base/620 to output-clippy February 24, 2026 09:07
@fengmk2 fengmk2 force-pushed the vp-exec branch 3 times, most recently from 84935ee to 18670da Compare February 25, 2026 03:00
Comment thread packages/cli/binding/src/exec/filter.rs
@fengmk2 fengmk2 marked this pull request as ready for review February 25, 2026 03:24
@fengmk2 fengmk2 force-pushed the vp-exec branch 2 times, most recently from 487a0b0 to ca728de Compare February 25, 2026 07:57
Comment thread packages/cli/snap-tests/command-exec/snap.txt
@graphite-app graphite-app Bot changed the base branch from graphite-base/620 to main February 25, 2026 13:04
@fengmk2 fengmk2 force-pushed the vp-exec branch 2 times, most recently from fa38f1e to 31ac034 Compare February 25, 2026 13:59
Copy link
Copy Markdown
Member Author

fengmk2 commented Feb 26, 2026

Merge activity

  • Feb 26, 11:37 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 26, 11:38 AM UTC: Graphite rebased this pull request as part of a merge.
  • Feb 26, 11:58 AM UTC: @fengmk2 merged this pull request with Graphite.

Add `vp exec` as the equivalent of `pnpm exec` — prepends
`./node_modules/.bin` to PATH and executes a command. Commands resolve
through the modified PATH (local bins first, then system PATH), matching
pnpm exec's real behavior. No remote fallback unlike `vpx`.

Global CLI: delegates to local CLI when vite-plus is a dependency,
otherwise handles exec directly (prepend PATH + spawn).

Local CLI: prepends PM bin dir and node_modules/.bin to PATH, sets
VITE_PLUS_PACKAGE_NAME env var, supports --shell-mode/-c flag.
@fengmk2 fengmk2 merged commit 732f8cd into main Feb 26, 2026
18 checks passed
@fengmk2 fengmk2 deleted the vp-exec branch February 26, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants