You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using husky 9, the command fails with husky install is deprecated and husky add is deprecated:
~/temp_repositories/deletemerepo on main ?1 ........................................................................................................................................ took 9s at 20:15:40
> npm install husky jira-prepare-commit-msg --save-dev && npx husky install
added 27 packages, and audited 28 packages in 1s
4 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
install command is deprecated
~/temp_repositories/deletemerepo on main ?3 ................................................................................................................................................ at 20:16:08
> npx husky add .husky/prepare-commit-msg 'npx jira-prepare-commit-msg $1'
add command is deprecated
Workaround
Use husky v8 instead for now until husky 9 support is added
The issue is that the new Husky system requires exiting with code !=0 to stop processing. so preparing commits is fine but pre-commit hooks don't work.
Unusable with husky v9
When using husky 9, the command fails with
husky install is deprecated
andhusky add is deprecated
:Workaround
Use husky v8 instead for now until husky 9 support is added
The text was updated successfully, but these errors were encountered: