diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-22 02:47:31 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-22 02:47:31 +0800 |
commit | 921d9d7ed5a549878b3a9130a99b9cbe2ae11903 (patch) | |
tree | ee20d3005850619160e7dc985736e47813c4af68 /packages/monorepo-scripts | |
parent | b2e1be5cfe373f7cdafd5bd9a0c3ec1ea1e5f1d5 (diff) | |
parent | 68c15de8908b1e8eb8f04d26301fec62ed2af1c1 (diff) | |
download | dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.gz dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.bz2 dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.lz dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.xz dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.tar.zst dexon-sol-tools-921d9d7ed5a549878b3a9130a99b9cbe2ae11903.zip |
Merge branch 'development' into feature/instant/rollbar-env
Diffstat (limited to 'packages/monorepo-scripts')
-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 c1e2b702f..5fe1aacf2 100644 --- a/packages/monorepo-scripts/src/prepublish_checks.ts +++ b/packages/monorepo-scripts/src/prepublish_checks.ts @@ -199,6 +199,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)) { |