Duplicate content in the manifest.json
Closed this issue · 1 comments
jurijsk commented
Use of require()
to load manifest file for manipulation, as shown in doc results in duplicated content of manifest.json file under default
property as require
and it it (at least for some confutations?).
Consider using require("...").default
in the samples or even JSON.parse(fs.readFileSync("...").toString())
.
Both option worked for me.
aklinker1 commented
The library actually exports a readJsonFile
method that does all that for you. I've updated the docs to use it instead of require
.