diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg deleted file mode 100644 index 97d8e9a..0000000 --- a/.husky/prepare-commit-msg +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -# Check if commit message is provided with -m flag -COMMIT_MSG_FILE=$1 -COMMIT_SOURCE=$2 - -# Check if commit is being created from the message source (e.g., with `git commit -m`) -if echo "$HUSKY_GIT_PARAMS" | grep -qE '^-m\s'; then - if [ "$COMMIT_SOURCE" = "message" ]; then - exit 0 - fi -fi - -exec < /dev/tty && npx git-cz --hook || true diff --git a/package.json b/package.json index 62194ca..fcc8fd9 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint": "next lint", "format:check": "prettier --check --ignore-path .gitignore .", "format:fix": "prettier --write --ignore-path .gitignore .", - "prepare": "husky", + "postinstall": "husky", "commit": "git-cz" }, "config": {