aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-10-18 22:16:27 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-10-18 22:16:27 +0800
commita7336d3c6594cdb2c19540d526b62ee05eda6cf5 (patch)
tree9f1ac970153eba00210a105023e286a1c01edba6 /packages/monorepo-scripts
parent8b62b350b1fed6a0d8827ca9ed5fcec3e78ae82f (diff)
downloaddexon-sol-tools-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar
dexon-sol-tools-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar.gz
dexon-sol-tools-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar.bz2
dexon-sol-tools-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar.lz
dexon-sol-tools-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar.xz
dexon-sol-tools-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar.zst
dexon-sol-tools-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.zip
Don't attempt publishing if no packages need it
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts4
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) {