"scripts": {
"postinstall": "git config --local core.hooksPath etc/hooks"
}, 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.