Skip to content

fix(config): prioritized package.json last when looking for config files #484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2018

Conversation

travi
Copy link
Contributor

@travi travi commented May 23, 2018

since package.json was prioritized first, it is always found and always used, even if it does not contain commitizen config. the other optional config files are never found as a result. this change looks for the optional files first and only lands on the package.json if the other files do not exist

fixes #478

since package.json was prioritized first, it is always found and always used, even if it does not contain commitizen config. the other optional config files are never found as a result. this change looks for the optional files first and only lands on the package.json if the other files do not exist

fixes commitizen#478
@travi
Copy link
Contributor Author

travi commented May 23, 2018

i did not find a test covering this priority order, but would be open to adding something if you would prefer.

@jimthedev jimthedev merged commit 5f8902e into commitizen:master May 24, 2018
@travi
Copy link
Contributor Author

travi commented May 24, 2018

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

commitizen uses wrong version of cz-conventional-changelog
2 participants