Skip to content

feat: add vpr as standalone shorthand for vp run#1178

Draft
fengmk2 wants to merge 3 commits intofix-vitest-globalsfrom
vp-run-alias-vpr
Draft

feat: add vpr as standalone shorthand for vp run#1178
fengmk2 wants to merge 3 commits intofix-vitest-globalsfrom
vp-run-alias-vpr

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Mar 28, 2026

Add vpr as a shim binary that acts as a shorthand for vp run,
following the same pattern as vpx (shorthand for vp exec).
When invoked, vpr delegates to the same run-or-delegate logic:
local vite-plus CLI when vite-plus is a dependency, otherwise
falls back to <pm> run.

  • Add vpr command module with execute_vpr entry point
  • Add vpr detection in shim/mod.rs detect_shim_tool()
  • Add vpr dispatch in shim/dispatch.rs
  • Add vpr to SHIM_TOOLS in env setup and doctor
  • Update tip message to mention vpr shorthand
  • Update run guide, run RFC, and trampoline RFC docs

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 28, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit c6e7de2
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69c787eb729a8d0008cc62de

@fengmk2 fengmk2 self-assigned this Mar 28, 2026
Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 28, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label auto-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

fengmk2 added 3 commits March 28, 2026 16:39
Add `vpr` as a shim binary that acts as a shorthand for `vp run`,
following the same pattern as `vpx` (shorthand for `vp exec`).
When invoked, `vpr` delegates to the same run-or-delegate logic:
local vite-plus CLI when vite-plus is a dependency, otherwise
falls back to `<pm> run`.

- Add vpr command module with execute_vpr entry point
- Add vpr detection in shim/mod.rs detect_shim_tool()
- Add vpr dispatch in shim/dispatch.rs
- Add vpr to SHIM_TOOLS in env setup and doctor
- Update tip message to mention vpr shorthand
- Update run guide, run RFC, and trampoline RFC docs
Show "(also available as standalone `vpr`)" next to the `run` command
in the top-level help output. Add snap test for the `vpr` command
verifying script execution, argument passthrough, and missing script
error via PM fallback.
Add `vpr -h` step to verify help output shows `vp run` help.
Remove `ignoredPlatforms: ["win32"]` since vpr works on all platforms.
@fengmk2 fengmk2 changed the base branch from main to graphite-base/1178 March 28, 2026 08:40
@fengmk2 fengmk2 changed the base branch from graphite-base/1178 to fix-vitest-globals March 28, 2026 08:40
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.

1 participant