diff --git a/.husky/commit-msg b/.husky/commit-msg index f144af0..535837c 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx --no -- commitlint --edit "$1" || { echo "Try \033[1;32mnpx git-cz --disable-emoji\033[0;37m to commit and be align with the conventions or use \033[1;33mgit commit -m \"yolo!\" --no-verify\033[0;37m to bypass the commit-msg hook."; exit 1; } diff --git a/.husky/post-checkout b/.husky/post-checkout index 63ac0cb..171646a 100755 --- a/.husky/post-checkout +++ b/.husky/post-checkout @@ -1,6 +1,3 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - set +e # Install any missing dependencies since package.json changed, while only versions changes are ignored. git diff-tree -r --ignore-matching-lines="version" --name-only --no-commit-id "$1" "$2" | grep --quiet package.json && npm ci diff --git a/.husky/post-merge b/.husky/post-merge index ec3cb38..a206b85 100755 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -1,5 +1,2 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - # Install any missing dependencies since package.json changed, while only versions changes are ignored. git diff-tree -r --ignore-matching-lines="version" --name-only --no-commit-id ORIG_HEAD HEAD | grep --quiet package.json && npm ci diff --git a/.husky/pre-commit b/.husky/pre-commit index 41ae0d5..718da8a 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx --no lint-staged diff --git a/.husky/pre-push b/.husky/pre-push index 620ccfb..7812a83 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npm run test -- --onlyChanged --watchAll=false diff --git a/package.json b/package.json index b4e5306..32f579d 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "lint": "eslint .", "lint:fix": "eslint . --fix", "start": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts", - "prepare": "husky install", + "prepare": "husky", "release": "dotenv semantic-release --no-ci", "release:ci": "semantic-release", "release:dry-run": "npm run release -- --dry-run",