aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-11-22 01:27:27 +0800
committerFabio Berger <me@fabioberger.com>2018-11-22 01:27:27 +0800
commit71d15a68c1ca5de2055ad8c1ad9fc47608022a53 (patch)
tree10ccc6b7ce25fd2b44dd5352dff0de6b69061074 /packages
parent327311788809267a250e99f4af2a7544024bc842 (diff)
downloaddexon-sol-tools-71d15a68c1ca5de2055ad8c1ad9fc47608022a53.tar
dexon-sol-tools-71d15a68c1ca5de2055ad8c1ad9fc47608022a53.tar.gz
dexon-sol-tools-71d15a68c1ca5de2055ad8c1ad9fc47608022a53.tar.bz2
dexon-sol-tools-71d15a68c1ca5de2055ad8c1ad9fc47608022a53.tar.lz
dexon-sol-tools-71d15a68c1ca5de2055ad8c1ad9fc47608022a53.tar.xz
dexon-sol-tools-71d15a68c1ca5de2055ad8c1ad9fc47608022a53.tar.zst
dexon-sol-tools-71d15a68c1ca5de2055ad8c1ad9fc47608022a53.zip
immediately return the patch incremented version if no changelog entries exist
Diffstat (limited to 'packages')
-rw-r--r--packages/monorepo-scripts/src/utils/utils.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/monorepo-scripts/src/utils/utils.ts b/packages/monorepo-scripts/src/utils/utils.ts
index 44ff971e8..95b187cc2 100644
--- a/packages/monorepo-scripts/src/utils/utils.ts
+++ b/packages/monorepo-scripts/src/utils/utils.ts
@@ -91,6 +91,7 @@ export const utils = {
const changelog = changelogUtils.getChangelogOrCreateIfMissing(packageName, packageLocation);
if (_.isEmpty(changelog)) {
nextVersionIfValid = semver.inc(currentVersion, 'patch');
+ return nextVersionIfValid as string;
}
const lastEntry = changelog[0];
if (semver.gt(currentVersion, lastEntry.version)) {