change json output formt

This commit is contained in:
Luis Tejeda
2022-06-17 10:23:42 -05:00
parent 7dcfbaad04
commit 127964d4b9
3 changed files with 53 additions and 40 deletions

View File

@@ -4856,10 +4856,16 @@ module.exports = {
if (rootFormat.toLowerCase() === parse.YAML_FORMAT) {
bundledFile = parse.toYAML(bundledFile);
}
else if (rootFormat.toLowerCase() === parse.JSON_FORMAT) {
bundledFile = parse.toJSON(bundledFile, null);
}
}
else if (format.toLowerCase() === parse.YAML_FORMAT) {
bundledFile = parse.toYAML(bundledFile);
}
else if (format.toLowerCase() === parse.JSON_FORMAT) {
bundledFile = parse.toJSON(bundledFile, null);
}
return { rootFile: { path: contentAndComponents.fileName }, bundledContent: bundledFile };
};
},