Skip to content

Do not update package.json when running vpr #2374

Description

@BlankParticle

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

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Target date

    None yet

    Start date

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions