commitizen / commitizen/cz-cli
husky doesn't cause issues with script named commit
- Lingua principale
- JavaScript
- Stelle
- 17.5k
- Fork
- 566
- Merge medio
- 8h 16m
- PR unite (30g)
- 1
Descrizione
This section from the README doesn't seem valid anymore. I've been using a script called `"commit"` with a husky `"precommit"` hook without any issues.
Unless I'm missing something this can be removed.
```
NOTE: if you are using precommit hooks thanks to something like husky, you will need to name your script some thing other than "commit" (e.g. "cm": "git-cz"). The reason is because npm-scripts has a "feature" where it automatically runs scripts with the name prexxx where xxx is the name of another script. In essence, npm and husky will run "precommit" scripts twice if you name the script "commit," and the work around is to prevent the npm-triggered precommit script.
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Apri il README e individua la nota relativa alla denominazione di uno script "commit" insieme a un hook "precommit" di Husky. Verifica il comportamento documentato con la configurazione corrente del progetto o con un esempio minimo di npm-script, quindi rimuovi o aggiorna la nota in modo che il README corrisponda al comportamento osservato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100