feat(env)!: manage package manager environments - #2398
Draft
liangmiQwQ wants to merge 12 commits into
Draft
Conversation
✅ Deploy Preview for viteplus-preview canceled.
|
liangmiQwQ
force-pushed
the
feat-breaking/extend-vp-env-to-manage-pm
branch
from
August 10, 2026 11:27
a892455 to
3623dfa
Compare
liangmiQwQ
force-pushed
the
feat-breaking/extend-vp-env-to-manage-pm
branch
from
August 10, 2026 12:41
3623dfa to
9e22fa6
Compare
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.
This PR extends
vp envto manage Node.js and package managers as peer environment components.It adds package-manager defaults, session overrides, project pins, installation lifecycle, diagnostics, listings, and scoped environment commands. Package-manager selection keeps project declarations and lockfile detection in the resolution order, while unconfigured named shims use a cached latest release.
vp envvp env current [scope]--json.vp env print [scope]PATH.vp env default [specs]pnpm@10set the package-manager fallback.--unsetclears selected defaults.vp env on [scope]vp env off [scope]vp env setupvp env doctor [scope]vp env which <tool>vp env pin [specs]--no-installis used.vp env unpin [scope]vp env list [scope]--json.vp env list-remote [scope] [pattern]vp env exec [overrides] <command>--nodeand--package-manageroverride individual components;runremains an alias.vp env install [requests]vp env uninstall <specs>vp env clean [scope]vp env use [requests]--unsetclears session overrides.This is currently opened against
mainas a draft while the stacked diff is being organized.🤖 Generated with Codex