Skip to content

Commit

Permalink
fix: cnpm fail cause packgeManager not matched
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Mar 10, 2020
1 parent 1f7d02d commit 20810c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sh/husky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ fi
# Run husky-run with the package manager used to install Husky
case $packageManager in
"npm") run_command npx --no-install;;
"npminstall") run_command npx --no-install;;
"pnpm") run_command pnpx --no-install;;
"yarn") run_command yarn run --silent;;
"*") echo "Unknown package manager: $packageManager"; exit 0;;
*) echo "Unknown package manager: $packageManager"; exit 0;;
esac

1 comment on commit 20810c0

@MondoGao
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't expect this coming.
没想到是这种方式和网红达成了互动。

Please sign in to comment.