diff options
author | Fabio Berger <me@fabioberger.com> | 2018-11-22 01:27:27 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-11-22 01:27:27 +0800 |
commit | 71d15a68c1ca5de2055ad8c1ad9fc47608022a53 (patch) | |
tree | 10ccc6b7ce25fd2b44dd5352dff0de6b69061074 /packages/monorepo-scripts | |
parent | 327311788809267a250e99f4af2a7544024bc842 (diff) | |
download | dexon-0x-contracts-71d15a68c1ca5de2055ad8c1ad9fc47608022a53.tar.gz dexon-0x-contracts-71d15a68c1ca5de2055ad8c1ad9fc47608022a53.tar.zst dexon-0x-contracts-71d15a68c1ca5de2055ad8c1ad9fc47608022a53.zip |
immediately return the patch incremented version if no changelog entries exist
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r-- | packages/monorepo-scripts/src/utils/utils.ts | 1 |
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)) { |