We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc2c37d commit 7dbcacaCopy full SHA for 7dbcaca
.husky/commit-msg
@@ -1,4 +1,12 @@
1
#!/usr/bin/env sh
2
. "$(dirname -- "$0")/_/husky.sh"
3
4
-npx --no -- commitlint --edit ${1}
+case `uname` in
5
+ # bug on Windows/Github Desktop: add `.cmd` extension fixes it
6
+ *CYGWIN*|*MINGW*|*MSYS*)
7
+ npx.cmd --no -- commitlint --edit ${1}
8
+ ;;
9
+ *)
10
+ npx --no -- commitlint --edit ${1}
11
12
+esac
.husky/pre-commit
-npx lint-staged
+ npx.cmd lint-staged
+ npx lint-staged
0 commit comments