diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-18 22:39:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 22:39:00 +0800 |
commit | 857eb95ac0f8299fe517321cb805a836232222bc (patch) | |
tree | ebb0f6d8bd32c9ee588e3be8d4a58ffe5c96ce09 /packages/monorepo-scripts/src/publish.ts | |
parent | 8b62b350b1fed6a0d8827ca9ed5fcec3e78ae82f (diff) | |
parent | 4fd3f12aebc8df826dd129dc164f17cb7078046a (diff) | |
download | dexon-sol-tools-857eb95ac0f8299fe517321cb805a836232222bc.tar dexon-sol-tools-857eb95ac0f8299fe517321cb805a836232222bc.tar.gz dexon-sol-tools-857eb95ac0f8299fe517321cb805a836232222bc.tar.bz2 dexon-sol-tools-857eb95ac0f8299fe517321cb805a836232222bc.tar.lz dexon-sol-tools-857eb95ac0f8299fe517321cb805a836232222bc.tar.xz dexon-sol-tools-857eb95ac0f8299fe517321cb805a836232222bc.tar.zst dexon-sol-tools-857eb95ac0f8299fe517321cb805a836232222bc.zip |
Merge pull request #1157 from 0xProject/feature/fix-monorepo-scripts
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) { |