fix: remove automatic lefthook install
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user