Skip to content

fix(pm): avoid implicit project writes - #2399

Draft
liangmiQwQ wants to merge 19 commits into
voidzero-dev:mainfrom
liangmiQwQ:refactor-breaking/directly-call-package-manager-binary
Draft

fix(pm): avoid implicit project writes#2399
liangmiQwQ wants to merge 19 commits into
voidzero-dev:mainfrom
liangmiQwQ:refactor-breaking/directly-call-package-manager-binary

Conversation

@liangmiQwQ

@liangmiQwQ liangmiQwQ commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Close #2375
Close #2374
Close #1916

Package-manager commands resolve the manager and version from project metadata, then execute the managed binary for that exact version.

Package-manager detection is non-mutating. Lockfiles, config files, defaults, and devEngines.packageManager ranges are resolved for the current command without changing package.json. Projects can declare or remove a package-manager version explicitly with vp env pin and vp env unpin.

Project-local dependency commands such as vp install and vp add require an existing package.json. Managed global operations continue to use the Vite+ global package store.

🤖 Generated with Codex

@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 051db78
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a87e757471fef0008ddc3e2

@liangmiQwQ
liangmiQwQ force-pushed the refactor-breaking/directly-call-package-manager-binary branch 18 times, most recently from c2d45b6 to 22afb4f Compare August 12, 2026 03:36
@liangmiQwQ liangmiQwQ changed the title refactor(pm): execute package managers from PATH refactor(pm)!: dispatch package managers from PATH without probing Aug 12, 2026
@liangmiQwQ
liangmiQwQ force-pushed the refactor-breaking/directly-call-package-manager-binary branch 5 times, most recently from d00de4b to c7a0290 Compare August 12, 2026 13:15
@liangmiQwQ
liangmiQwQ marked this pull request as ready for review August 12, 2026 13:16
@liangmiQwQ
liangmiQwQ marked this pull request as draft August 12, 2026 13:18
@liangmiQwQ liangmiQwQ changed the title refactor(pm)!: dispatch package managers from PATH without probing refactor(pm)!: dispatch package managers from PATH Aug 12, 2026
@liangmiQwQ
liangmiQwQ force-pushed the refactor-breaking/directly-call-package-manager-binary branch 2 times, most recently from 0724997 to 8f7f7f4 Compare August 13, 2026 00:17
@liangmiQwQ
liangmiQwQ requested a review from fengmk2 August 13, 2026 01:13
@liangmiQwQ
liangmiQwQ force-pushed the refactor-breaking/directly-call-package-manager-binary branch from 8f7f7f4 to fc2ec8f Compare August 15, 2026 12:31
@liangmiQwQ
liangmiQwQ marked this pull request as draft August 19, 2026 14:25
@liangmiQwQ
liangmiQwQ force-pushed the refactor-breaking/directly-call-package-manager-binary branch 2 times, most recently from 2df2faf to ca7efa9 Compare August 20, 2026 10:34
@liangmiQwQ liangmiQwQ changed the title refactor(pm)!: dispatch package managers from PATH fix(pm): avoid implicit project writes Aug 20, 2026
@liangmiQwQ
liangmiQwQ force-pushed the refactor-breaking/directly-call-package-manager-binary branch 2 times, most recently from 4843ae5 to 2ef28d1 Compare August 20, 2026 12:12
@liangmiQwQ
liangmiQwQ force-pushed the refactor-breaking/directly-call-package-manager-binary branch from 2ef28d1 to 647302d 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

1 participant