Skip to content

Add flag to disable terminal clear in --watch mode #45713

@silverwind

Description

@silverwind

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.good first issueIssues that are suitable for first-time contributors.watch-modeIssues and PRs related to watch mode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions