Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit efdccc8

Browse filesBrowse files
theoludwigmarco-ippolito
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 1a0d8ef commit efdccc8
Copy full SHA for efdccc8

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎lib/internal/main/watch_mode.js‎

Copy file name to clipboardExpand all lines: lib/internal/main/watch_mode.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ function reportGracefulTermination() {
109109
return () => {
110110
clearTimeout(graceTimer);
111111
if (reported) {
112-
process.stdout.write(`${clear}${green}Gracefully restarted ${kCommandStr}${white}\n`);
112+
if (!kPreserveOutput) {
113+
process.stdout.write(clear);
114+
}
115+
process.stdout.write(`${green}Gracefully restarted ${kCommandStr}${white}\n`);
113116
}
114117
};
115118
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.