-
I recently updated to husky v7, and was surprised to see things not working: so I went to look at the changes, and I am rather surprised at the changes made to the way configuration of hooks is done. I have read the two articles which are linked at the end of the
Maybe you have had different experiences, but to me, the entire point of husky is to be centrally configured from the The first article does seem to address my point though, near the end of it:
This answer is quite vague... Where can I learn what "safe guards" exist ? What are these "additional features" ? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
I stop using Is |
Beta Was this translation helpful? Give feedback.
-
I've been stuck in husky 4 for a long time. I don't plan to upgrade unless husky changes back. |
Beta Was this translation helpful? Give feedback.
-
We adopted husky in part because it's dumb to have to make a separate file for each hook when the scripts are so short. Git should implement support for a single entrypoint script for all hooks. Then that entrypoint could just spawn some JS that decides what script to run from arguments passed in by git and package.json. |
Beta Was this translation helpful? Give feedback.
-
You know, Husky's value proposition had three features:
Number 3 was the least valuable, but it's the only thing Husky v7 retained.
|
Beta Was this translation helpful? Give feedback.
-
The downside of So I'm still using husky in my projects because it prevents the following two cases:
Also there's more logging which can help people that are not familiar with Git hooks (which can be the case in Open Source projects where many people from different background can clone the project). Hope it clarifies a bit the reasoning :) |
Beta Was this translation helpful? Give feedback.
The downside of
git config ...
is that it will go belowpackage.json
and modify the repo it's in.So I'm still using husky in my projects because it prevents the following two cases:
git config core.hooksPath
, the root project could have its hook path modified, creating a complicated to debug issue.Also there's more logging which can help people that are not familiar with Git hooks (which can be the case in Open Source projects where many people f…