aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/utils/utils.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 02:47:31 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 02:47:31 +0800
commit921d9d7ed5a549878b3a9130a99b9cbe2ae11903 (patch)
treeee20d3005850619160e7dc985736e47813c4af68 /packages/monorepo-scripts/src/utils/utils.ts
parentb2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5 (diff)
parent68c15de8908b1e8eb8f04d26301fec62ed2af1c1 (diff)
downloaddexon-0x-contracts-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.gz
dexon-0x-contracts-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.zst
dexon-0x-contracts-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.zip
Merge branch 'development' into feature/instant/rollbar-env
Diffstat (limited to 'packages/monorepo-scripts/src/utils/utils.ts')
-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)) {