diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-19 00:42:24 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-19 00:42:24 +0800 |
commit | c2038eae5bc02fc24edcb369381b0d9699aed0aa (patch) | |
tree | f8d4b0aa654eab3f26bdbfe40dea6fb7e105e864 /packages/monorepo-scripts/src/publish.ts | |
parent | c4ae91c7c5aaa2d6e278448667bf828162be93bc (diff) | |
parent | 857eb95ac0f8299fe517321cb805a836232222bc (diff) | |
download | dexon-sol-tools-c2038eae5bc02fc24edcb369381b0d9699aed0aa.tar dexon-sol-tools-c2038eae5bc02fc24edcb369381b0d9699aed0aa.tar.gz dexon-sol-tools-c2038eae5bc02fc24edcb369381b0d9699aed0aa.tar.bz2 dexon-sol-tools-c2038eae5bc02fc24edcb369381b0d9699aed0aa.tar.lz dexon-sol-tools-c2038eae5bc02fc24edcb369381b0d9699aed0aa.tar.xz dexon-sol-tools-c2038eae5bc02fc24edcb369381b0d9699aed0aa.tar.zst dexon-sol-tools-c2038eae5bc02fc24edcb369381b0d9699aed0aa.zip |
Merge branch 'development' into docSectionFixes
* development:
Remove 0x.js -> monorepo-scripts dependency
Don't attempt publishing if no packages need it
Diffstat (limited to 'packages/monorepo-scripts/src/publish.ts')
-rw-r--r-- | packages/monorepo-scripts/src/publish.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts index c1a6b9d7f..b7131e69e 100644 --- a/packages/monorepo-scripts/src/publish.ts +++ b/packages/monorepo-scripts/src/publish.ts @@ -35,6 +35,10 @@ async function confirmAsync(message: string): Promise<void> { // Fetch public, updated Lerna packages const shouldIncludePrivate = true; const allUpdatedPackages = await utils.getUpdatedPackagesAsync(shouldIncludePrivate); + if (_.isEmpty(allUpdatedPackages)) { + utils.log('No packages need publishing'); + process.exit(0); + } const packagesWithDocs = getPackagesWithDocs(allUpdatedPackages); if (!configs.IS_LOCAL_PUBLISH) { |