Merge pull request #1157 from 0xProject/feature/fix-monorepo-scripts
Don't attempt publishing if no packages need it
This commit is contained in:
commit
857eb95ac0
@ -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",
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user