commitizen / commitizen/cz-cli
husky doesn't cause issues with script named commit
- Linguagem predominante
- JavaScript
- Estrelas
- 17.5k
- Forks
- 566
- Merge médio
- 8h 16min
- PRs com merge (30d)
- 1
Descrição
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.
```
Guia de contribuição
Direção de pesquisa
Abra o README e localize a observação sobre nomear um script como "commit" junto com um hook "precommit" do Husky. Verifique o comportamento documentado com a configuração atual do projeto ou com um exemplo mínimo de npm-script e, em seguida, remova ou atualize a observação para que o README corresponda ao comportamento observado.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript
- Domínio
- documentation
- Tipo de issue
- Documentação
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 45/100