ngryman / cz-emoji

Commitizen adapter formatting commit messages using emojis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

IgorVanian opened this issue · comments

commented

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.

commented

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.