Skip to content

Commit dcc60c6

Browse files
clydinalan-agius4
authored andcommitted
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.
1 parent 1c32c19 commit dcc60c6

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/utils

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/utils/spinner.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class Spinner {
1919

2020
constructor(text?: string) {
2121
this.spinner = ora({
22-
text,
22+
text: text === undefined ? undefined : text + '\n',
2323
// The below 2 options are needed because otherwise CTRL+C will be delayed
2424
// when the underlying process is sync.
2525
hideCursor: false,

0 commit comments

Comments
 (0)