diff options
author | Fred Carlsen <fred@sjelfull.no> | 2018-11-27 23:19:36 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-11-27 23:19:36 +0800 |
commit | 9b0020a884bdb98f9da434878fec171ab533ba7e (patch) | |
tree | ca285eb7dfd2c68f781b8b74d409fb69665a58dc /packages/monorepo-scripts/src | |
parent | ec12e46e3f52ebb44338c113cecd073979821fae (diff) | |
parent | fdc4a4e5fa31d8797abf6313f4488147853ed77e (diff) | |
download | dexon-0x-contracts-9b0020a884bdb98f9da434878fec171ab533ba7e.tar.gz dexon-0x-contracts-9b0020a884bdb98f9da434878fec171ab533ba7e.tar.zst dexon-0x-contracts-9b0020a884bdb98f9da434878fec171ab533ba7e.zip |
Merge remote-tracking branch 'upstream/development' into website
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)) { |