From 7b77638225375dae0bda768d63b8c06849c8e397 Mon Sep 17 00:00:00 2001 From: Isaac Date: Thu, 18 Apr 2024 22:24:18 +0100 Subject: [PATCH] chore: fix husky hooks --- .husky/commit-msg | 3 +-- .husky/pre-commit | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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