-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Avoid prexxx
postxxx
names for hooks
#99
Comments
Hi @wizardzloy, Thanks for the feedback. Actually I didn't thought about this edge case. Not against changing to raw names, but I'd like to better understand what are the hooks that conflicts for people and if it would be possible to rename them? |
@typicode It is definitely possible to rename your scripts to avoid the clashes, but I believe it's still a limitation. |
I'm not sure if that will fully resolve the issue. There is nothing stopping it for whatever reason executing
|
@duclet excellent. That's what it should be. |
@typicode Is this still being looked at? I'd love to configure husky like @duclet specified... Maybe without the So, if What do you think? |
@GabrielDuarteM yes, actually Corresponding README can be found in the dev branch: It has a known issue with GitHub Desktop on Windows (that is going to be fixed), that's why it's currently behind a Thank you all again for the feedback :) |
Cool! Looking forward to |
Developer can run it, if desired, using `npx cz`. Also there are known issues using Husky and Commitizen together - commitizen/cz-cli#558 (comment) - commitizen/cz-cli#432 (wont fix) - typicode/husky#99
When you run your npm script called
xxx
, npm will automatically execute the scriptsprexxx
before andpostxxx
after the target script if available.husky
uses the names withpre
andpost
for the hook scripts a lot , this introduces the limitation for the names of your npm scripts, e.g. #94 (comment)Can we use names like
pre-xxx
andpost-xxx
for the hooks instead?The text was updated successfully, but these errors were encountered: