Skip to content

Commit

Permalink
configure Ora to avoid messing with Ctrl+C (#3760)
Browse files Browse the repository at this point in the history
Currently, it's mostly noticeable during bit build command at the typescript compilation step.
It seems to be a bug in Ora package, see here for more info: sindresorhus/ora#156
I tried the suggested workaround there and it's working.
  • Loading branch information
davidfirst committed Feb 8, 2021
1 parent 378bf3d commit de25f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/loader/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class Loader {

private createNewSpinner(): Ora {
// for some reason the stream defaults to stderr.
return ora({ spinner: SPINNER_TYPE, text: '', stream: process.stdout });
return ora({ spinner: SPINNER_TYPE, text: '', stream: process.stdout, discardStdin: false, hideCursor: false });
}
}

Expand Down

0 comments on commit de25f5a

Please sign in to comment.