You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vp why -g and vp outdated -g should check global packages managed by Vite+ #1656
Ideally, all global pm commands in Vite+ like vp outdated -g, vp update -g, vp install -g, vp uninstall -g should be used to control packages inside ~/.vite-plus/packages.
However, vp outdated -g and vp why -g here just delegate the command to npm with a --global field, makes it show packages managed by the corresponding pm, not Vite+'s global packages.
It needs Vite+ to implement vp outdated -g and vp why -g here.
However, I am a little hesitate about whether to add vp why -g. Semantically speaking, Vite+'s global packages are isolated under $VP_HOME/packages, means they won't share dependency graph. why normally explains why a dependency exists in a workspace or shared structure.
What's more, I found that npm itself does not support global why commands, and neither does yarn. This can help reflect why -g doesn't seem to have much meaning. The missing npm why -g also makes implementation more difficult (we have to direct to package's node_module and let npm to analyze it as a workspace, then merge and modify npm's result into a big json and finally print it in a certain struct.)
Based on that, I personally would prefer just remove vp why -g, or add a unsupported flag.
However, I am a little hesitate about whether to add vp why -g. Semantically speaking, Vite+'s global packages are isolated under $VP_HOME/packages, means they won't share dependency graph. why normally explains why a dependency exists in a workspace or shared structure.
What's more, I found that npm itself does not support global why commands, and neither does yarn. This can help reflect why -g doesn't seem to have much meaning. The missing npm why -g also makes implementation more difficult (we have to direct to package's node_module and let npm to analyze it as a workspace, then merge and modify npm's result into a big json and finally print it in a certain struct.)
Based on that, I personally would prefer just remove vp why -g, or add a unsupported flag.
Activity
fengmk2 commentedon May 21, 2026
@liangmiQwQ Are you willing to continue fixing such problems?
liangmiQwQ commentedon May 21, 2026
Yeah
liangmiQwQ commentedon May 23, 2026
vp outdated -gis implemented in #1659.However, I am a little hesitate about whether to add
vp why -g. Semantically speaking, Vite+'s global packages are isolated under$VP_HOME/packages, means they won't share dependency graph.whynormally explains why a dependency exists in a workspace or shared structure.What's more, I found that
npmitself does not support global why commands, and neither doesyarn. This can help reflectwhy -gdoesn't seem to have much meaning. The missingnpm why -galso makes implementation more difficult (we have to direct to package's node_module and letnpmto analyze it as a workspace, then merge and modify npm's result into a big json and finally print it in a certain struct.)Based on that, I personally would prefer just remove
vp why -g, or add aunsupportedflag.What do you think of it? @fengmk2
feat(cli): check managed global outdated packages (#1659)
feat(cli): check managed global outdated packages (voidzero-dev#1659)
liangmiQwQ commentedon May 30, 2026
@fengmk2 Sorry for pinging, but please take a look there when you are free, thanks a lot.
fengmk2 commentedon May 30, 2026
@liangmiQwQ Agreed,
vp whydoesn't need to support the-gflag.fix(cli): remove global why flag (#1720)