Skip to content

Commit 06958c6

Browse files
AlexHaytonJamieMason
authored andcommitted
feat(list-mismatches): return exit code on finding mismatches
1 parent 54df2fe commit 06958c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin-list-mismatches.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ getMismatchedVersions(...patterns).then((versionByName) => {
2020
_.each(versionByName, (versions, name) => {
2121
console.log(chalk.yellow(name), chalk.dim(versions.join(', ')));
2222
});
23+
24+
if (versionByName.length) {
25+
process.exit(1);
26+
}
2327
});

0 commit comments

Comments
 (0)