diff --git a/.husky/commit-msg b/.husky/commit-msg index c160a77..1ae0e22 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 d24fdfc..90cdaef 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