diff --git a/CLAUDE.md b/CLAUDE.md index 167d351..7076cca 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -150,5 +150,8 @@ Do **not** add any `Co-Authored-By` / "Generated with Claude Code" attribution lines to commits in this repo. Write the body (when useful) as wrapped prose or bullet points explaining the *why*, matching the existing history. -The hook and the test gate are activated per clone with: -`git config core.hooksPath .githooks` (emergency skip: `git commit --no-verify`). \ No newline at end of file +The hook (and the `pre-push` test gate) live in `.githooks/` and are activated +per clone via `core.hooksPath`. You don't need to remember this: the `prepare` +npm script runs `git config core.hooksPath .githooks` automatically on every +`npm install`. The deploy server does not need it — it only pulls, never commits +or pushes, so no hook ever fires there. Emergency skip: `git commit --no-verify`. \ No newline at end of file diff --git a/package.json b/package.json index e7996e3..ed27761 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { + "prepare": "git config core.hooksPath .githooks || true", "dev": "next dev -p 3014", "build": "next build --webpack", "start": "next start",