Skip to content

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

Merged
jimthedev merged 1 commit intocommitizen:masterfrom
travi:config
May 24, 2018
Merged

fix(config): prioritized package.json last when looking for config files#484
jimthedev merged 1 commit intocommitizen:masterfrom
travi:config

Conversation

@travi
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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