We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5803964 commit 81ce761Copy full SHA for 81ce761
.husky/commit-msg
@@ -1,3 +1,5 @@
1
#!/bin/sh
2
+. "$(dirname "$0")/_/husky.sh"
3
+. "$(dirname "$0")/common.sh"
4
5
npx --no-install commitlint --edit $1
.husky/common.sh
@@ -0,0 +1,8 @@
+command_exists () {
+ command -v "$1" >/dev/null 2>&1
+}
+
+# Windows 10, Git Bash and Yarn workaround
6
+if command_exists winpty && test -t 1; then
7
+ exec < /dev/tty
8
+fi
.husky/pre-commit
@@ -1,4 +1,5 @@
. "$(dirname "$0")/_/husky.sh"
npm run test
0 commit comments