Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): correctly align error/warning mes…
Browse files Browse the repository at this point in the history
…sages 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.

(cherry picked from commit dcc60c6)
  • Loading branch information
clydin authored and alan-agius4 committed Dec 1, 2023
1 parent 235eb43 commit a1e8ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular_devkit/build_angular/src/utils/spinner.ts
Expand Up @@ -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,
Expand Down

0 comments on commit a1e8ffa

Please sign in to comment.