From a7336d3c6594cdb2c19540d526b62ee05eda6cf5 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 18 Oct 2018 16:16:27 +0200 Subject: Don't attempt publishing if no packages need it --- packages/monorepo-scripts/src/publish.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages') 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 { // 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) { -- cgit v1.2.3 From 4fd3f12aebc8df826dd129dc164f17cb7078046a Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 18 Oct 2018 16:25:13 +0200 Subject: Remove 0x.js -> monorepo-scripts dependency --- packages/0x.js/package.json | 1 - 1 file changed, 1 deletion(-) (limited to 'packages') diff --git a/packages/0x.js/package.json b/packages/0x.js/package.json index 11339b7d8..56999d3e5 100644 --- a/packages/0x.js/package.json +++ b/packages/0x.js/package.json @@ -47,7 +47,6 @@ "@0x/contract-addresses": "^1.0.1", "@0x/dev-utils": "^1.0.13", "@0x/migrations": "^2.0.0", - "@0x/monorepo-scripts": "^1.0.12", "@0x/tslint-config": "^1.0.9", "@types/lodash": "4.14.104", "@types/mocha": "^2.2.42", -- cgit v1.2.3