Skip to content

Commit fa695fa

Browse files
theoludwigtargos
authored andcommitted
watch: preserve output when gracefully restarted
PR-URL: #54323 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent cd0795f commit fa695fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/internal/main/watch_mode.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ function reportGracefulTermination() {
113113
return () => {
114114
clearTimeout(graceTimer);
115115
if (reported) {
116-
process.stdout.write(`${clear}${green}Gracefully restarted ${kCommandStr}${white}\n`);
116+
if (!kPreserveOutput) {
117+
process.stdout.write(clear);
118+
}
119+
process.stdout.write(`${green}Gracefully restarted ${kCommandStr}${white}\n`);
117120
}
118121
};
119122
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy