aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/convert_changelogs.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/monorepo-scripts/src/convert_changelogs.ts')
-rw-r--r--packages/monorepo-scripts/src/convert_changelogs.ts10
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/monorepo-scripts/src/convert_changelogs.ts b/packages/monorepo-scripts/src/convert_changelogs.ts
index f4c4d51a2..71383ee7c 100644
--- a/packages/monorepo-scripts/src/convert_changelogs.ts
+++ b/packages/monorepo-scripts/src/convert_changelogs.ts
@@ -77,12 +77,10 @@ const HEADER_PRAGMA = '##';
changelog.changes.push(changes);
}
}
- const changelogJson = JSON.stringify(changelogs);
- const changelogJsonPath = `${lernaPackage.location}/CHANGELOG.json`;
- fs.writeFileSync(changelogJsonPath, changelogJson);
- await execAsync(`prettier --write ${changelogJsonPath} --config .prettierrc`, {
- cwd: constants.monorepoRootPath,
- });
+ const changelogJSONPath = JSON.stringify(changelogs);
+ const changelogJSONPathPath = `${lernaPackage.location}/CHANGELOG.json`;
+ fs.writeFileSync(changelogJSONPathPath, changelogJSONPath);
+ await utils.prettifyAsync(changelogJSONPath, constants.monorepoRootPath);
}
})().catch(err => {
utils.log(err.stdout);