Conversation
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.
Issue for this PR
Closes #49623
Type of change
What does this PR do?
Vite+ keeps global packages in its own store, so npm and pnpm cannot detect or manage an OpenCode installation created with
vp.This adds
vpas an installation method, detects exact package matches from Vite+'s JSON output, uses Vite+ for updates and removal, and handles package-name migration with a forced install. It also documents Vite+ installation and explicit upgrades.How did you verify your code works?
bun run checkfrom the repository root.VP_HOME: detection, no-match handling, removal, an exact update to@opencode/cli@2.0.7,opencode --version, and forced package-name migration all passed.Screenshots / recordings
OpenCode installed in an isolated
VP_HOMEwith Vite+ detectsvpthrough/update, upgrades from 2.0.6 to 2.0.7, and reports success.vite-plus-update-demo.mp4
Checklist