Skip to content

Husky creates all types of hooks even if I have only specified precommit hook in package.json #260

@jforjava1981

Description

@jforjava1981

Husky is creating all types of git hook scripts by default even if I have just specified precommit hooks in scripts tag of my package.json. Is there a way to disable and only create script which has been specified ?

relevant part of my package.json looks like this :
...

scripts:{
...
precommit : "node runeslint.js"

}

where runeslint.js is my custom node JS script file.

In my .git/hooks directory I see husky creates all types of git hook's script files apart from pre-commit. Can we disable this? if not is it possible to introduce this as a feature?

I am using husky version 0.14.3

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