conventional-changelog/commitlint
Auf GitHub ansehenCommitLint with Yarn v2 (Plug'n'play)
Open
#2.637 geöffnet am 7. Juni 2021
featurehelp wanted
Repository-Metriken
- Stars
- (15.497 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 12h 56m) (52 gemergte PRs in 30 T)
Beschreibung
Expected Behavior
In the yarn v1 and yarn v2 (with nodeLinker: node_modules), commitlint work perfectly
Current Behavior
It doesn't work at all. I've tried these command in git-hook (husky):
npx --no-install commitlint --edit "$1"yarn --no-install commitlint --edit "$1"yarn run --no-install commitlint --edit "$1"
Here is the pictures of this problem:



Affected packages
- cli
- core
- prompt
- config-angular
Steps to Reproduce (for bugs)
Link for my repo (bypass git hook)
- yarn init && yarn set version berry
- yarn add -D @commitlint/config-conventional @commitlint/cli husky
- yarn husky install
- echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
- npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'
- Commit change
Context
Your Environment
Mac OS X 10.11.6 El Captain
| Executable | Version |
|---|---|
commitlint --version |
bash: commitlint: command not found |
yarn run commitlint --version |
@commitlint/cli@12.1.4 (Need yarn run, see here |
git --version |
git version 2.29.2 |
node --version |
v14.15.3 |