Description
Running a script with vpr can add package manager metadata to package.json.
This is unexpected when I only want to run a script, especially in someone else’s repository. Coding agents also freak out with this behaviour, Vite+ edits package.json, the agent reverts the unexpected change, and Vite+ adds it again on the next vpr command.
Vite+ should not automatically edit files as side effects.
Suggested solution
Do not add packageManager or devEngines.packageManager metadata as a side effect of running vpr/vp run.
Pinning a package manager should require an explicit user action, such as a dedicated vp pm pin command.
Alternative
No response
Additional context
I want to fix this if we go with this proposal 🫡
Validations
Description
Running a script with
vprcan add package manager metadata topackage.json.This is unexpected when I only want to run a script, especially in someone else’s repository. Coding agents also freak out with this behaviour, Vite+ edits
package.json, the agent reverts the unexpected change, and Vite+ adds it again on the nextvprcommand.Vite+ should not automatically edit files as side effects.
Suggested solution
Do not add
packageManagerordevEngines.packageManagermetadata as a side effect of runningvpr/vp run.Pinning a package manager should require an explicit user action, such as a dedicated
vp pm pincommand.Alternative
No response
Additional context
I want to fix this if we go with this proposal 🫡
Validations