Store hook setup in git so every contributor and coding agent runs the same checks.
Add "Git hook setup" from ntent to this repo.
Fetch https://ntent.app/r/f/hooks-path as plain text. Merge it into package.json, inside the "scripts" block, without disturbing what is already there.
Then check it: Run pnpm install, then `git config core.hooksPath` prints scripts/git-hooks. A fresh clone gets the same answer with no manual step. Leave .git/hooks alone: it may hold hooks somebody else installed.Reads https://ntent.app/r/f/hooks-path
Read the code
package.json · inside the "scripts" block
1 lines
"prepare": "git config core.hooksPath scripts/git-hooks"Success check: Run pnpm install, then `git config core.hooksPath` prints scripts/git-hooks. A fresh clone gets the same answer with no manual step. Leave .git/hooks alone: it may hold hooks somebody else installed.