add husky

This commit is contained in:
AceDataCloud committed 2021-08-28 02:12:35 +08:00
1 parent 407d75dc5f
commit 82c63f991c
4 files changed
+17

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
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
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"