From 4f1c59818137cbcd335d5153c835e3f420aab575 Mon Sep 17 00:00:00 2001 From: Erik Kotsiuba Date: Mon, 27 Apr 2026 10:51:22 +0200 Subject: [PATCH] fix: remove automatic lefthook install --- README.md | 14 ++++++++++++++ package.json | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f78a58..57688f2 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,14 @@ pnpm dev ../test pnpm install ``` +### Install git hooks (contributors) + +`lefthook` is not installed automatically. If you want the local commit hooks used by this repo, run: + +```bash +pnpm exec lefthook install +``` + ### Development commands ```bash @@ -162,6 +170,12 @@ pnpm test This repo uses `lefthook`, Commitizen, conventional commitlint, and semantic-release. +If you want local hooks, install them once after `pnpm install`: + +```bash +pnpm exec lefthook install +``` + Recommended flow: ```bash diff --git a/package.json b/package.json index d010ac8..dcf7955 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ "check": "ultracite check", "check:ci": "biome ci .", "fix": "ultracite fix", - "prepare": "node -e \"if (!process.env.CI) { require('node:child_process').execSync('lefthook install', { stdio: 'inherit' }); } else { console.log('Skipping lefthook install in CI'); }\"", "commit": "cz", "commitlint": "commitlint", "release": "semantic-release"