Skip to content

Commit 81ce761

Browse files
committed
fix: husky issue 850
1 parent 5803964 commit 81ce761

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

Diff for: .husky/commit-msg

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
. "$(dirname "$0")/common.sh"
24

35
npx --no-install commitlint --edit $1

Diff for: .husky/common.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
command_exists () {
2+
command -v "$1" >/dev/null 2>&1
3+
}
4+
5+
# Windows 10, Git Bash and Yarn workaround
6+
if command_exists winpty && test -t 1; then
7+
exec < /dev/tty
8+
fi

Diff for: .husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
3+
. "$(dirname "$0")/common.sh"
34

45
npm run test

0 commit comments

Comments
 (0)