From bd7b5c51b2be9140c9d5ba3ca208ba4231eca83c Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 29 Mar 2018 15:18:42 +0200 Subject: Add 0.x.x edgecase --- packages/monorepo-scripts/src/convert_changelogs.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/monorepo-scripts/src/convert_changelogs.ts') diff --git a/packages/monorepo-scripts/src/convert_changelogs.ts b/packages/monorepo-scripts/src/convert_changelogs.ts index 419f36ff4..76ce50ced 100644 --- a/packages/monorepo-scripts/src/convert_changelogs.ts +++ b/packages/monorepo-scripts/src/convert_changelogs.ts @@ -28,7 +28,10 @@ const MONOREPO_ROOT_PATH = path.join(__dirname, '../../..'); }; for (const line of lines) { if (_.startsWith(line, '## ')) { - const version = line.substr(4).split(' - ')[0]; + let version = line.substr(4).split(' - ')[0]; + if (version === '0.x.x') { + version = utils.getNextPatchVersion(lernaPackage.package.version); + } const dateStr = line.split('_')[1]; let date; if (!_.includes(dateStr, 'TBD')) { -- cgit