Skip to content

Do not automatically add the packageManager entry into package.json #958

@will-stone

Description

@will-stone

Description

When running vp commands in a node+npm project, a packageManager entry in package.json is automatically added. However, we only ever use the version of npm that comes bundled with the node version we're using. By setting this to a number, it can get out of sync with the node version in use.

Suggested solution

Seeing as vp is able to detect an npm project simply by the presence of a package-lock.json file, I suggest not adding this field automatically. Or, if it does, to keep it in sync with the version actually being used with node.

Alternative

No response

Additional context

No response

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

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions