From 68d79c0bca1151e1d1406e042b0a4c9a1a5143fb Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Sun, 20 Mar 2022 13:00:24 +0100 Subject: [PATCH] cli: exit list-deprecations with error code if deprecations are found Signed-off-by: Patrik Oldsberg --- packages/cli/src/commands/repo/list-deprecations.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/cli/src/commands/repo/list-deprecations.ts b/packages/cli/src/commands/repo/list-deprecations.ts index d037344f18..b53118cc40 100644 --- a/packages/cli/src/commands/repo/list-deprecations.ts +++ b/packages/cli/src/commands/repo/list-deprecations.ts @@ -83,4 +83,8 @@ export async function command(cmd: Command) { console.log(`${location} - ${chalk.yellow(wrappedMessage)}`); } } + + if (deprecations.length > 0) { + process.exit(1); + } }