Skip to content

Commit 2a79c9b

Browse files
chore(husky): prepend binaries with npx in hooks
1 parent 0deac1f commit 2a79c9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
commitlint --edit $1
4+
npx commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npm run lint:dts && npm run test:ci && lint-staged
4+
npm run lint:dts && npm run test:ci && npx lint-staged

0 commit comments

Comments
 (0)