feat(cli): fall back to package manager for vp run without vite-plus dependency#549
Merged
feat(cli): fall back to package manager for vp run without vite-plus dependency#549
vp run without vite-plus dependency#549Conversation
Member
Author
bb1129f to
db31aaf
Compare
e7684f8 to
35d02fb
Compare
35d02fb to
fd8ca6f
Compare
fd8ca6f to
af16771
Compare
ed80484 to
b356849
Compare
Brooooooklyn
approved these changes
Feb 7, 2026
b356849 to
8d32710
Compare
8d32710 to
3eade84
Compare
3eade84 to
57b8c2a
Compare
2bfd7d9 to
324d4ed
Compare
fe7925e to
3a04378
Compare
4bc40f8 to
8e1e691
Compare
8e1e691 to
3656c22
Compare
3656c22 to
133cdeb
Compare
4b5143d to
d44848f
Compare
…s dependency When `vp run <script>` is executed in a project without `vite-plus` in dependencies or devDependencies, fall back to `<pm> run <script>` directly from the Rust layer instead of entering the JS delegation flow. This avoids unnecessary overhead of downloading Node.js runtime and prompting users to install vite-plus. - Add `has_vite_plus_dependency()` utility that walks up from cwd to find the nearest package.json and checks for vite-plus - Add `run_script_command()` / `resolve_run_script_command()` on PackageManager for executing `<pm> run <args>` - Add `run_or_delegate` module that checks dependency before routing - Add unit tests for dependency detection and command resolution - Add snap test verifying fallback behavior with pnpm
133cdeb to
367f25e
Compare
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

When
vp run <script>is executed in a project withoutvite-plusindependencies or devDependencies, fall back to
<pm> run <script>directlyfrom the Rust layer instead of entering the JS delegation flow. This avoids
unnecessary overhead of downloading Node.js runtime and prompting users to
install vite-plus.
has_vite_plus_dependency()utility that walks up from cwd to findthe nearest package.json and checks for vite-plus
run_script_command()/resolve_run_script_command()onPackageManager for executing
<pm> run <args>run_or_delegatemodule that checks dependency before routing