fix: remove automatic lefthook install
This commit is contained in:
@@ -148,6 +148,14 @@ pnpm dev ../test
|
|||||||
pnpm install
|
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
|
### Development commands
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -162,6 +170,12 @@ pnpm test
|
|||||||
|
|
||||||
This repo uses `lefthook`, Commitizen, conventional commitlint, and semantic-release.
|
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:
|
Recommended flow:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -36,7 +36,6 @@
|
|||||||
"check": "ultracite check",
|
"check": "ultracite check",
|
||||||
"check:ci": "biome ci .",
|
"check:ci": "biome ci .",
|
||||||
"fix": "ultracite fix",
|
"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",
|
"commit": "cz",
|
||||||
"commitlint": "commitlint",
|
"commitlint": "commitlint",
|
||||||
"release": "semantic-release"
|
"release": "semantic-release"
|
||||||
|
|||||||
Reference in New Issue
Block a user