Skip to content

Commit

Permalink
watch: preserve output when gracefully restarted
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig committed Aug 12, 2024
1 parent 56ff307 commit 90a6ecf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/internal/main/watch_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ function reportGracefulTermination() {
return () => {
clearTimeout(graceTimer);
if (reported) {
process.stdout.write(`${clear}${green}Gracefully restarted ${kCommandStr}${white}\n`);
if (!kPreserveOutput) {
process.stdout.write(clear);
}
process.stdout.write(`${green}Gracefully restarted ${kCommandStr}${white}\n`);
}
};
}
Expand Down

0 comments on commit 90a6ecf

Please sign in to comment.