Skip to content

Commit

Permalink
fix: replaced postinstall with prepare (#33)
Browse files Browse the repository at this point in the history
using commit-msg hook instead of pre-commit hook
fixed script inside commit-msg
  • Loading branch information
Rizaaal authored Jan 3, 2024
1 parent 33739cc commit a492802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit → .husky/commit-msg
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit
npx commitlint --edit "$1"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "declarations.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "husky install"
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a492802

Please sign in to comment.