-
-
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
pre-push not work #322
Comments
I'm also experiencing the same thing, however if I use version: 1.0.0-rc.13 everything works fine. |
Same thing, pre-push hooks didn't work until I specified that specific version. Install command
package.json "husky": {
"hooks": {
"pre-push": "npm run test"
}
}, |
Hi @wfsovereign,
Thanks for the help @Ubiquitous23, @aguynamedben 👍 |
thanks everybody |
Works with this:
Don't work with latest version. |
Should this be reopened per the last comment? (In my case, we had preexisting hooks, but running |
Another vote for reopening this please |
Hii @swesleylokiandthor @azu @fearphage @ahutchings @alexeyten @calendee Documentation of husky is telling that you automatic configure husky but that is not working correctly. I have figured it out. You neeed unisntall the husky first using command
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run type-check"
}
"lint-staged": {
"*.@(ts|tsx)": [
"npm run lint",
"npm run format"
]
}
|
Also this command in docs, My husky does not seem to be running at all automatically. When i ran pretty-quick manually, it runs fine. What am i missing here ? |
"husky": "^0.14.3"
system: osx 10.13.6
node version: v8.11.3
don't work
The text was updated successfully, but these errors were encountered: