From dcc60c6ce440de4555ef9b81fa8cdc7ee26f3d3b Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 30 Nov 2023 20:02:29 -0500 Subject: [PATCH] fix(@angular-devkit/build-angular): correctly align error/warning messages when spinner is active When using the `application` builder with progress enabled (the default), the spinner text will now automatically contain a trailing newline. This ensures that any diagnostic messages are not awkwardly printed on the same line as the spinner. --- packages/angular_devkit/build_angular/src/utils/spinner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/utils/spinner.ts b/packages/angular_devkit/build_angular/src/utils/spinner.ts index 4a0e3deb587a..f960bad440ce 100644 --- a/packages/angular_devkit/build_angular/src/utils/spinner.ts +++ b/packages/angular_devkit/build_angular/src/utils/spinner.ts @@ -19,7 +19,7 @@ export class Spinner { constructor(text?: string) { this.spinner = ora({ - text, + text: text === undefined ? undefined : text + '\n', // The below 2 options are needed because otherwise CTRL+C will be delayed // when the underlying process is sync. hideCursor: false,