antfu-collective / ni

💡 Use the right package manager
MIT License
6.27k stars 208 forks source link

Fix `-v` flag not working for `yarn@berry` #175

Closed Dimava closed 1 year ago

Dimava commented 1 year ago

Description

This PR fixes ni -vnot showing yarn@berry version due to passing yarn@berry as executable name.
With this commit getCommand is used to determine proper agent executable (node is handled separately.)

Linked Issues

169

Additional context

This PR also adds --version flag alias and a tip in separate commits, those commits may be safely dropped/reverted if they are not needed.