diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-22 06:14:27 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-22 06:14:27 +0800 |
commit | 0adc8f5053894de7df85aacb6a8bf8714f989f0a (patch) | |
tree | 24ddf4531ef472739b276711a4b85e9a3017b156 /packages/monorepo-scripts/src | |
parent | eca63b1a5815c61901453837f9c2b737fa82eb20 (diff) | |
parent | f46a49fd13c88dd86c9661d76bace18844642c04 (diff) | |
download | dexon-0x-contracts-0adc8f5053894de7df85aacb6a8bf8714f989f0a.tar.gz dexon-0x-contracts-0adc8f5053894de7df85aacb6a8bf8714f989f0a.tar.zst dexon-0x-contracts-0adc8f5053894de7df85aacb6a8bf8714f989f0a.zip |
Merge branch 'development' into feature/header-tweaks
Diffstat (limited to 'packages/monorepo-scripts/src')
-rw-r--r-- | packages/monorepo-scripts/src/prepublish_checks.ts | 2 | ||||
-rw-r--r-- | packages/monorepo-scripts/src/utils/utils.ts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/src/prepublish_checks.ts b/packages/monorepo-scripts/src/prepublish_checks.ts index fc550cf3a..60cdccf1d 100644 --- a/packages/monorepo-scripts/src/prepublish_checks.ts +++ b/packages/monorepo-scripts/src/prepublish_checks.ts @@ -195,6 +195,6 @@ const checkRequiredEnvVariables = () => { }; prepublishChecksAsync().catch(err => { - utils.log(err.message); + utils.log(err); process.exit(1); }); 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)) { |