aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 06:14:27 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 06:14:27 +0800
commit0adc8f5053894de7df85aacb6a8bf8714f989f0a (patch)
tree24ddf4531ef472739b276711a4b85e9a3017b156 /packages/monorepo-scripts/src
parenteca63b1a5815c61901453837f9c2b737fa82eb20 (diff)
parentf46a49fd13c88dd86c9661d76bace18844642c04 (diff)
downloaddexon-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.ts2
-rw-r--r--packages/monorepo-scripts/src/utils/utils.ts1
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)) {