You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was previously using ghooks which used the raw names for git hooks (commit-msg instead of commitmsg).
I can understand your preference of removing - as it's closer to npm standard scripts but it would make the transition from ghooks easier the raw names were also supported.
Furthermore, I think it's clearer to use the git names because that's what one can find on the Internet.
Plus, I must say that, in my opinion, commit-msg is easier to read than commitmsg. :)
Reacted by Jonathan Ingram, Volodymyr Guguiev and Dmitry Shirokov
There is another issue with the current hook names. Say you have an npm script called commit, then if you define a husky hook "precommit" and run npm run commit npm will also automatically execute precommit just because of the way npm-scripts work. Is it possible to workaround this situation without renaming the commit script?
Activity
vovacodes commentedon Feb 14, 2017
There is another issue with the current hook names. Say you have an npm script called
commit, then if you define a husky hook "precommit" and runnpm run commitnpm will also automatically executeprecommitjust because of the way npm-scripts work. Is it possible to workaround this situation without renaming thecommitscript?iamstarkov commentedon Feb 14, 2017
@wizardzloy there is no way to workaround it right now
typicode commentedon Apr 11, 2018
Closing as next version will use raw names, thanks for the suggestion :)