grupoboticario / news-fragments

An easy way to create your changelog file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not loading users config.

last1here opened this issue · comments

The config file loads the package.json for this module not the users package.json. This line seems to be the issue:

const pjson = require("../package.json");

Changing that to something along the lines of the following should resolve the issue.

const packagePath = path.resolve(process.cwd() || '', "package.json");
const pjson = require(packagePath);