Skip to content

Instantly share code, notes, and snippets.

@yanick
Created May 28, 2020 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanick/be3d840be82843432a415db57722e929 to your computer and use it in GitHub Desktop.
Save yanick/be3d840be82843432a415db57722e929 to your computer and use it in GitHub Desktop.
decides to run npm or yarn or pnpmdepending of the current project
#!/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