-
-
Save yanick/be3d840be82843432a415db57722e929 to your computer and use it in GitHub Desktop.
decides to run npm or yarn or pnpmdepending of the current project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
set manager npm | |
if test -f pnpm-lock.yaml | |
set manager pnpm | |
else if test -f yarn.lock | |
set manager yarn | |
end | |
exec $manager $argv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment