cli: exit list-deprecations with error code if deprecations are found

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-03-20 13:00:24 +01:00
parent 948a56f401
commit 68d79c0bca
@@ -83,4 +83,8 @@ export async function command(cmd: Command) {
console.log(`${location} - ${chalk.yellow(wrappedMessage)}`);
}
}
if (deprecations.length > 0) {
process.exit(1);
}
}