conventional-changelog / commitlint

📓 Lint commit messages
https://commitlint.js.org
MIT License
16.61k stars 890 forks source link

fix: Unable to run `npm install -D @commitlint/config-lerna-scopes` with lerna v7 because of peerDeps #3630

Open jeremiah-clothier opened 1 year ago

jeremiah-clothier commented 1 year ago

Expected Behavior

I should be able to run the command npm install -D @commitlint/config-lerna-scopes without getting any errors

Current Behavior

I get an error when running the command npm install -D @commitlint/config-lerna-scopes

Screenshot 2023-07-25 at 9 06 43 PM

Affected packages

Possible Solution

Updating the field here https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-lerna-scopes/package.json#L30

Steps to Reproduce

1. Create a new project and run `npm install -D lerna`
2. Next add commit lint to the project and install more deps `npm install -D @commitlint/cli @commitlint/config-conventional @commitlint/config-lerna-scopes`

Context

No response

commitlint --version

@commitlint/cli@17.6.1

git --version

2.40.1

node --version

v18.15.0

escapedcat commented 1 year ago

Updating lerna got stuck with #3539. I assume this would need to be solved and then support for v7 would need to be added. Happy with any support here.