From 723276ae3fe460ebb89b9b0948c3423e021e2cf9 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Mon, 2 Apr 2018 16:56:14 +0900 Subject: Fix hasty find/replace --- packages/monorepo-scripts/src/convert_changelogs.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/monorepo-scripts') diff --git a/packages/monorepo-scripts/src/convert_changelogs.ts b/packages/monorepo-scripts/src/convert_changelogs.ts index c75abfc44..b5be14ed8 100644 --- a/packages/monorepo-scripts/src/convert_changelogs.ts +++ b/packages/monorepo-scripts/src/convert_changelogs.ts @@ -77,9 +77,9 @@ const HEADER_PRAGMA = '##'; changelog.changes.push(changes); } } - const changelogJSONPath = JSON.stringify(changelogs, null, 4); - const changelogJSONPathPath = `${lernaPackage.location}/CHANGELOG.json`; - fs.writeFileSync(changelogJSONPathPath, changelogJSONPath); + const changelogJSON = JSON.stringify(changelogs, null, 4); + const changelogJSONPath = `${lernaPackage.location}/CHANGELOG.json`; + fs.writeFileSync(changelogJSONPath, changelogJSON); await utils.prettifyAsync(changelogJSONPath, constants.monorepoRootPath); } })().catch(err => { -- cgit v1.2.3