We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 567c3ed commit 725a6aeCopy full SHA for 725a6ae
packages/angular_devkit/build_angular/src/utils/spinner.ts
@@ -16,7 +16,13 @@ export class Spinner {
16
enabled = true;
17
18
constructor(text?: string) {
19
- this.spinner = ora(text);
+ this.spinner = ora({
20
+ text,
21
+ // The below 2 options are needed because otherwise CTRL+C will be delayed
22
+ // when the underlying process is sync.
23
+ hideCursor: false,
24
+ discardStdin: false,
25
+ });
26
}
27
28
set text(text: string) {
@@ -37,7 +43,7 @@ export class Spinner {
37
43
this.spinner.stop();
38
44
39
45
40
- start(text?: string) {
46
+ start(text?: string): void {
41
47
if (this.enabled) {
42
48
this.spinner.start(text);
49
0 commit comments