change json output format

This commit is contained in:
Luis Tejeda
2022-06-17 10:33:34 -05:00
parent 3f1f1e4a37
commit ac6c73209d
4 changed files with 65 additions and 59 deletions

View File

@@ -4864,10 +4864,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 };
};
},