-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flag to disable terminal clear in --watch
mode
#45713
Comments
sounds like a flag/config that can be added 👍🏻 |
--watch
should not clear terminal--watch
mode
Thanks, updated issue title and I also investigated nodemon, they default to not clearing but there are various supported ways to achieve clearing. I think it should be definitely made configurable because user preferences vary. |
hello, how taking a stab at the issue, how do I whitelist a command/flag Thank you! |
Added a --preserve-output flag to watch mode Fixes: nodejs#45713
Ok was able to figure out have started a draft PR, attempting to add tests |
Quoting myself from #45717:
|
Added a --watch-preserve-output flag to watch mode Fixes: nodejs#45713
Fixes: nodejs#45713 PR-URL: nodejs#45717 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
What is the problem this feature will solve?
Currently
--watch
clears the terminal every time it restarts the process. This can hide vital information that the process logs on shutdown or from other processes running in the same terminal.What is the feature you are proposing to solve the problem?
Remove the terminal clearing because it is opinionated. If this is not desired, make it opt-out via a flag like TypeScript's
preserveWatchOutput
or the nodemon solution.What alternatives have you considered?
nodemon
also does not clear terminal on restart, so it is an alternative.The text was updated successfully, but these errors were encountered: