ngryman / cz-emoji

Commitizen adapter formatting commit messages using emojis.
MIT License
404 stars 76 forks source link

cz-emoji ignores package.json config if package version format is not "x.y.z" #78

Closed IgorVanian closed 1 year ago

IgorVanian commented 1 year ago

Hello,

We have a cz-emoji config in package.json and after changing our package version from "x.y.z" to "x.y" (omitting the 0 patch version), git-cz is ignoring the custom config and uses the default one:

image

If we add the third ".0" to the version, it shows prompts specified in the config.

image

EDIT: The issue appears to be fixed in the latest version of this package. From what I see, it doesn't use readPkg() to parse package.json which was failing because of the version.

IgorVanian commented 1 year ago

The issue appears to be fixed in the latest version of this package. From what I see, it doesn't use readPkg() to parse package.json which was failing because of the version.