From bb209a07071860d9d50f25f3b92ea18e3f39a503 Mon Sep 17 00:00:00 2001 From: homer0 Date: Sat, 9 Nov 2024 04:33:38 +0100 Subject: [PATCH] chore: update husky installation --- .husky/commit-msg | 4 +--- .husky/post-merge | 5 +---- .husky/pre-commit | 2 -- .husky/pre-push | 2 -- utils/scripts/prepare | 2 +- 5 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 5426a932..cc355db5 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,2 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx commitlint --edit $1 +pnpm exec commitlint --edit $1 diff --git a/.husky/post-merge b/.husky/post-merge index feb751fe..f90b7619 100755 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -1,5 +1,2 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -pnpm install - +pnpm install --frozen-lockfile diff --git a/.husky/pre-commit b/.husky/pre-commit index 3dd1ddf9..5f255459 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,2 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" - pnpm run lint diff --git a/.husky/pre-push b/.husky/pre-push index 3eba8542..4e07616c 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1,2 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" - pnpm run types:check && pnpm test diff --git a/utils/scripts/prepare b/utils/scripts/prepare index d645ff30..6654ccb3 100755 --- a/utils/scripts/prepare +++ b/utils/scripts/prepare @@ -1,2 +1,2 @@ #!/bin/sh -e -is-ci || husky install +is-ci || husky