Skip to content

feat(env)!: manage package manager environments - #2398

Draft
liangmiQwQ wants to merge 17 commits into
voidzero-dev:mainfrom
liangmiQwQ:feat-breaking/extend-vp-env-to-manage-pm
Draft

feat(env)!: manage package manager environments#2398
liangmiQwQ wants to merge 17 commits into
voidzero-dev:mainfrom
liangmiQwQ:feat-breaking/extend-vp-env-to-manage-pm

Conversation

@liangmiQwQ

@liangmiQwQ liangmiQwQ commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Depends on #2391. Close #1853

This PR extends vp env to 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. Resolution follows explicit/session overrides, project declarations, lockfile or config detection, and the global default. npm, pnpm, Yarn, and Bun remain independent families, including their aliases.

Node and package-manager modes can be managed independently. Scoped commands avoid resolving excluded families, and exact integrity pins survive project resolution, vp env use, session overrides, installation, and shim execution.

It doesn't break users' daily use command, commands such as vp env default 22.19.0 still works.

Breaking changes: unscoped component commands now operate on the complete environment, and the JSON contracts for current, list, and list-remote expose Node.js and package managers as peer components.

🤖 Generated with Codex

@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 2a6acd0
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a880ccb8d0cee0008d38e62

@liangmiQwQ
liangmiQwQ force-pushed the feat-breaking/extend-vp-env-to-manage-pm branch 16 times, most recently from 7737c90 to 4d9fd9e Compare August 12, 2026 01:07
@liangmiQwQ
liangmiQwQ force-pushed the feat-breaking/extend-vp-env-to-manage-pm branch 2 times, most recently from a9d9f6c to 447f600 Compare August 12, 2026 05:47
@liangmiQwQ
liangmiQwQ marked this pull request as ready for review August 12, 2026 13:16
@liangmiQwQ
liangmiQwQ requested a review from fengmk2 August 13, 2026 01:13
@liangmiQwQ
liangmiQwQ force-pushed the feat-breaking/extend-vp-env-to-manage-pm branch from 0181e80 to df7f7a6 Compare August 15, 2026 12:31
@liangmiQwQ
liangmiQwQ marked this pull request as draft August 19, 2026 14:25
@liangmiQwQ
liangmiQwQ force-pushed the feat-breaking/extend-vp-env-to-manage-pm branch 2 times, most recently from 390f47b to 5bd666b Compare August 20, 2026 11:12
@liangmiQwQ
liangmiQwQ force-pushed the feat-breaking/extend-vp-env-to-manage-pm branch from f592c87 to de92623 Compare August 21, 2026 03:14
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.

Option To Change Package Manager

1 participant