Skip to content

Shim for pnpm & yarn #858

@chungweileong94

Description

@chungweileong94

Description

Currently, if I install vite-plus globally, it works great for the most part, but as soon as I use any AI agent, the problem starts to show up, where the agent will attempt to use pnpm/yarn instead of vp, which is something already solved in the project-level AGENTS.md vite-plus section. However, if other teams don't have Vite-plus installed globally, their agent will tend to use vp and result in a command not found.

The only workaround is to disable the vp env, and use fnm/nvm + corepack to manage my node/package manager.

Suggested solution

Have a shim for both pnpm and yarn, then let Vite+ resolve the correct version of the pnpm/yarn, just like how node, npm & npx shims work.

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

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions