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()).
Use of
require()
to load manifest file for manipulation, as shown in doc results in duplicated content of manifest.json file underdefault
property asrequire
and it it (at least for some confutations?).Consider using
require("...").default
in the samples or evenJSON.parse(fs.readFileSync("...").toString())
.Both option worked for me.