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.
  • Loading branch information
clydin authored and alan-agius4 committed Dec 1, 2023
1 parent 1c32c19 commit dcc60c6
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
Original file line number Diff line number Diff line change
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 dcc60c6

Please sign in to comment.