Special-case if there are no packages to publish
This commit is contained in:
parent
3346024ea7
commit
3d361c6b4a
@ -79,6 +79,9 @@ export const utils = {
|
||||
const result = await execAsync(`${constants.lernaExecutable} updated --json`, {
|
||||
cwd: constants.monorepoRootPath,
|
||||
});
|
||||
if (result.stdout === '') {
|
||||
return [];
|
||||
}
|
||||
const updatedPackages = JSON.parse(result.stdout);
|
||||
if (!shouldIncludePrivate) {
|
||||
const updatedPublicPackages = _.filter(updatedPackages, updatedPackage => !updatedPackage.private);
|
||||
|
Loading…
x
Reference in New Issue
Block a user