We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
husky
1 parent 28e5cf1 commit c652f9cCopy full SHA for c652f9c
.husky/commit-msg
@@ -0,0 +1,5 @@
1
+#!/bin/sh
2
+. "$(dirname "$0")/_/husky.sh"
3
+. "$(dirname "$0")/common.sh"
4
+
5
+yarn commitlint --edit $1
.husky/common.sh
@@ -0,0 +1,8 @@
+command_exists () {
+ command -v "$1" >/dev/null 2>&1
+}
+# Workaround for Windows 10, Git Bash and Yarn
6
+if command_exists winpty && test -t 1; then
7
+ exec < /dev/tty
8
+fi
package.json
@@ -13,6 +13,7 @@
13
"npm": ">=6.8.0"
14
},
15
"scripts": {
16
+ "prepare": "husky install",
17
"test": "echo \"Error: no test specified\" && exit 0",
18
"updates": "npx ncu",
19
"release": "np"
0 commit comments