GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(cli): fall back to package manager for `vp run` without vite-plus dependency by fengmk2 · Pull Request #549 · voidzero-dev/vite-plus

Conversation

@fengmk2

@fengmk2 fengmk2 commented Feb 6, 2026

Copy link
Copy Markdown
Member

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@fengmk2 fengmk2 self-assigned this Feb 6, 2026
@fengmk2 fengmk2 mentioned this pull request Feb 6, 2026
fix(install): auto-create package.json when missing in vp install / vp add #545
Merged
@fengmk2 Graphite App

fengmk2 commented Feb 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author
  • refactor(cli): rename vp env run to vp env exec #553 Graphite
  • feat(cli): fall back to package manager for vp run without vite-plus dependency #549 Graphite 👈 (View in Graphite)
  • feat(cli): add vp self-update command #548 Graphite
  • fix(install): auto-create package.json when missing in vp install / vp add #545 Graphite
  • feat(env): implement vp env command for Node.js version management #524 Graphite: 1 other dependent PR (#532 Graphite)
  • feat(vp): refactor global cli to rust entry point #514 Graphite
  • feat(js_runtime): add multi-source Node version reading #522 Graphite
  • fix(build): run vite-plus-cli build after other packages #531 Graphite
  • main

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2 fengmk2 mentioned this pull request Feb 6, 2026
feat(cli): add vp self-update command #548
Merged
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch from bb1129f to db31aaf Compare February 6, 2026 11:15
@fengmk2
fengmk2 force-pushed the self-upgrade branch from 5c1113e to 95310ab Compare February 6, 2026 11:28
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch 2 times, most recently from e7684f8 to 35d02fb Compare February 6, 2026 11:37
@fengmk2
fengmk2 force-pushed the self-upgrade branch from 95310ab to 787ce1c Compare February 6, 2026 11:37
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch from 35d02fb to fd8ca6f Compare February 6, 2026 11:49
@fengmk2
fengmk2 force-pushed the self-upgrade branch from 787ce1c to 1c3a5e4 Compare February 6, 2026 11:49
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch from fd8ca6f to af16771 Compare February 6, 2026 12:12
@fengmk2
fengmk2 force-pushed the self-upgrade branch from 1c3a5e4 to 21176ca Compare February 6, 2026 12:12
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch 3 times, most recently from ed80484 to b356849 Compare February 7, 2026 06:25
@fengmk2
fengmk2 force-pushed the self-upgrade branch from 48e1dbc to 0c7a539 Compare February 7, 2026 06:25
Brooooooklyn
Brooooooklyn approved these changes Feb 7, 2026
View reviewed changes
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch from b356849 to 8d32710 Compare February 7, 2026 07:42
@fengmk2
fengmk2 force-pushed the self-upgrade branch from 0c7a539 to 35b4013 Compare February 7, 2026 07:42
@fengmk2
fengmk2 marked this pull request as ready for review February 7, 2026 07:46
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch from 8d32710 to 3eade84 Compare February 7, 2026 08:24
@fengmk2
fengmk2 force-pushed the self-upgrade branch from 2bad768 to f72bd26 Compare February 7, 2026 09:27
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch from 3eade84 to 57b8c2a Compare February 7, 2026 09:27
@fengmk2 fengmk2 mentioned this pull request Feb 7, 2026
refactor(cli): rename vp env run to vp env exec #553
Merged
@fengmk2
fengmk2 force-pushed the self-upgrade branch 2 times, most recently from 2bfd7d9 to 324d4ed Compare February 7, 2026 09:29
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch 2 times, most recently from fe7925e to 3a04378 Compare February 7, 2026 09:31
@fengmk2
fengmk2 force-pushed the self-upgrade branch from 324d4ed to a030d82 Compare February 7, 2026 10:10
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch 2 times, most recently from 4bc40f8 to 8e1e691 Compare February 7, 2026 10:21
@fengmk2
fengmk2 force-pushed the self-upgrade branch from a030d82 to 50406ae Compare February 7, 2026 10:21
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch from 8e1e691 to 3656c22 Compare February 7, 2026 10:24
@fengmk2
fengmk2 force-pushed the self-upgrade branch from 50406ae to 4b5143d Compare February 7, 2026 10:24
@fengmk2 fengmk2 added the test: e2e Auto run e2e tests label Feb 7, 2026
@fengmk2
fengmk2 changed the base branch from self-upgrade to graphite-base/549 February 7, 2026 10:42
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch from 3656c22 to 133cdeb Compare February 7, 2026 10:43
@fengmk2
fengmk2 force-pushed the graphite-base/549 branch from 4b5143d to d44848f Compare February 7, 2026 10:43
@graphite-app
graphite-app Bot changed the base branch from graphite-base/549 to main February 7, 2026 10:44
@fengmk2
feat(cli): fall back to package manager for vp run without vite-plu…
367f25e
…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
@fengmk2
fengmk2 force-pushed the vp-run-without-vite-plus-deps branch from 133cdeb to 367f25e Compare February 7, 2026 10:44
@fengmk2
fengmk2 merged commit 8a22e14 into main Feb 7, 2026
32 of 33 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2 Graphite App

fengmk2 commented Feb 7, 2026

Copy link
Copy Markdown
Member Author

Merge activity

  • Feb 7, 11:05 AM UTC: @fengmk2 merged this pull request with Graphite.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2
fengmk2 deleted the vp-run-without-vite-plus-deps branch February 7, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Brooooooklyn Brooooooklyn Brooooooklyn approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@fengmk2 fengmk2

Labels

test: e2e Auto run e2e tests

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@fengmk2 @Brooooooklyn
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.