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
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/yarninstead ofvp, which is something already solved in the project-levelAGENTS.mdvite-plus section. However, if other teams don't have Vite-plus installed globally, their agent will tend to usevpand result in a command not found.The only workaround is to disable the
vp env, and usefnm/nvm+corepackto manage my node/package manager.Suggested solution
Have a shim for both
pnpmandyarn, then let Vite+ resolve the correct version of thepnpm/yarn, just like hownode,npm&npxshims work.Alternative
No response
Additional context
No response
Validations