Skip to content

Commit

Permalink
build: remove commit hook for git-cz
Browse files Browse the repository at this point in the history
"Prepare commit message" hook runs not only on commit, but also on a variety of other git tasks such
as rebase and merge, sometimes in an automated way from IDE (Jetbrains IDEs do that). git-cz utility
wasn't built with this in mind, and leads to bad developer experience. We can use already existing
`npm run commit` script for this. Also `"prepare"` npm hook runs when a package is packaged (`npm
pack`), and `husky` is intended to be run on install.
  • Loading branch information
verytactical committed Oct 28, 2024
1 parent 716ccb1 commit 1acef7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions .husky/prepare-commit-msg

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 1acef7d

Please sign in to comment.