diff --git a/.husky/commit-msg b/.husky/commit-msg index c160a7712..1ae0e2289 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,3 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" - -npx --no -- commitlint --edit ${1} +. "$(where npx | head -n 1)" --no -- commitlint --edit ${1} diff --git a/.husky/pre-commit b/.husky/pre-commit index d24fdfc60..90cdaef75 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,3 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" - -npx lint-staged +. "$(where npx | head -n 1)" lint-staged