-
Notifications
You must be signed in to change notification settings - Fork 612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rush] Support Husky for git commit hooks #711
Comments
I was thinking about this a bit more. If Husky's package.json has a
We could try to work around this, but these two strategies both feel flawed in a modern package manager environment: (1) trying to configure the entire repo during a Having never used Husky myself, I'm making a lot of assumptions here which might be incorrect. But if I understand right, the solution might look something like this:
|
@pgonzal and I recently implemented a workaround for this Husky issue in this PR to upgrade Office UI Fabric React to use Rush 5. We created a new script,
In the rush.json, we inserted a new eventHooks field to run this script after rush install:
|
I'm going to close this issue. Natalie provided a pretty reasonable workaround, and #821 seems like an easier long term solution. |
I'd like to be able to use commitlint in my project. Traditionally we've used husky to setup git commit hooks and commitlint goes from there.
One option I've considered (but I haven't tried yet) is to create a
commit-hooks
project with a simple package.json that does what we need. The issue here would be if husky is able to traverse up the tree to find our .git and register the hooks correctly. Otherwise this should work.Alternatively first class rust support would be ideal.
@pgonzal wrote:
The text was updated successfully, but these errors were encountered: