commitizen / commitizen/cz-conventional-changelog
Commitlint config loading not working
- Dominant language
- JavaScript
- Stars
- 793
- Forks
- 444
- PR merge metrics
- No merged PRs in 30d
Description
I've been debugging `cz-conventional-changelog` trying to determine why is it not grabbing my `commitling.config.js` settings. After changing [`index.js#L45`](https://github.com/commitizen/cz-conventional-changelog/blob/master/index.js#L45) to log errors to the console, I saw this message: `TypeError: commitlintLoad is not a function`. Turns out `@commitlint/load` is not working correctly. Changing [`index.js#L31`](https://github.com/commitizen/cz-conventional-changelog/blob/master/index.js#L31) to `require(@commitlint/load).default`, solves the issue. Seems like something changed in the way the `@commitlint/load` library is being compiled to JS.
It's an easy fix but wanted to confirm if I'm in the right track.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.