10 days ago, Husky 5 was released https://dev.to/typicode/what-s-new-in-husky-5-32g5
after migrating to it (https://typicode.github.io/husky/#/)
I've noticed that there is a new .husky
dir in the project.
by default it contains the following:
.huskey
-> .gitignore
-> /_
the .gitignore
file is simply ignoring the _
dir
_
and inside the /_
dir there is a huskey.sh
file which is obviously meant to be ignored.
in the documentation - you add hook by:
npx husky add .husky/pre-commit "npm test"
which will create a pre-commit
file inside the .husky
dir.
Should I commit that dir with the pre-commit
file? not sure about that and can't find that in documentation.