chore: update husky to v5

This commit is contained in:
vben
2021-02-09 22:36:44 +08:00
parent 64533f6204
commit 2b466eaf9a
8 changed files with 99 additions and 115 deletions

9
.husky/common.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
command_exists () {
command -v "$1" >/dev/null 2>&1
}
# Workaround for Windows 10, Git Bash and Yarn
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi