Closed robbyrussell closed 4 years ago
Thank you for reporting this issue @robbyrussell 🙏
This error is functionnal I need to improve error handling. The node preset returned null
because it couldn't find a package.json
file in your project folder or it is empty. Is it the case? If not did you use it on an open source project so I could reproduce the issue?
@frinyvonnick Oh, I was about to test it out on Oh My Zsh, which does not have a package.json.
https://github.com/ohmyzsh/ohmyzsh/
I suppose that's my bad for not understanding that it needed to be used on a Node-friendly project
Not at all, this information is missing from the usage section. That's a good catch. gitmoji-changelog
has a preset system since 2.0.0 to enable supporting more projects that Node.js ones. Someone asked for a generic preset using a configuration file in issue #157. I will close the both issue as soon as the preset is made.
@robbyrussell I fixed the error messages and created a generic preset. You can test it with the canary version.
Here is how to use the generic preset:
.gitmoji-changelogrc
at the project root with the following content{
"project": {
"name": "ohmyzsh",
"description": "A delightful community-driven (with nearly 1,500 contributors) framework for managing your zsh configuration",
"version": "1.0.0"
}
}
gitmoji-changelog
with the preset option set to generic
npx gitmoji-changelog@canary --preset generic
I tested it on ohmyzsh. It works 😄
I'll publish it as soon as possible.
Thought I'd give this a whirl and hit a bug via npx version 6.4.1
I was able to install via npm, though. Thought I might report this should it pop up for others.