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
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