3 ms·
100%, I was using husky because we were using it at work. But it turns out for my use-case all I needed was this in my package.json: "scripts": {
by warp 2y ago
100%, I was using husky because we were using it at work. But it turns out for my use-case all I needed was this in my package.json:
"scripts": {
"postinstall": "git config --local core.hooksPath etc/hooks"
},
- rav 2y agoOoh, core.hooksPath is quite nifty. I usually use something like ln -sf ../../scripts/git-pre-commit-hook .git/hooks/pre-commit which simply adds a pre-commit symlink to a script in the repo's scripts/ dir. But hooksPath seems better.