Skip to content

add support for husky 9 #744

@aedison-tw

Description

@aedison-tw

Unusable with husky v9

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

npm install husky@8.0.3 jira-prepare-commit-msg --save-dev && npx husky install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions