cli: skip testinging of repo test --since matches nothing

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-09-20 22:10:22 +02:00
parent 5fe6ddef0b
commit 17f398face
+6
View File
@@ -101,6 +101,12 @@ export async function command(opts: OptionValues, cmd: Command): Promise<void> {
pkg => pkg.allLocalDependents.keys(),
),
);
if (packageNames.length === 0) {
console.log(`No packages changed since ${opts.since}`);
return;
}
args.push('--selectProjects', ...packageNames);
}