Skip to content

Commit

Permalink
feat(list-mismatches): return exit code on finding mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHayton authored and JamieMason committed Aug 25, 2018
1 parent 54df2fe commit 06958c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin-list-mismatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ getMismatchedVersions(...patterns).then((versionByName) => {
_.each(versionByName, (versions, name) => {
console.log(chalk.yellow(name), chalk.dim(versions.join(', ')));
});

if (versionByName.length) {
process.exit(1);
}
});

0 comments on commit 06958c6

Please sign in to comment.