Don't attempt publishing if no packages need it

This commit is contained in:
Leonid Logvinov 2018-10-18 16:16:27 +02:00
parent 8b62b350b1
commit a7336d3c65
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -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) {