diff --git a/packages/angular/cli/commands/lint-impl.ts b/packages/angular/cli/commands/lint-impl.ts index e9fb4dc801b3..eb4c5d5fcfc1 100644 --- a/packages/angular/cli/commands/lint-impl.ts +++ b/packages/angular/cli/commands/lint-impl.ts @@ -50,8 +50,9 @@ export class LintCommand extends ArchitectCommand { if (error) { throw error; } - - return status ?? 0; } + + // Return an exit code to force the command to exit after adding the package + return 1; } }