Skip to content

Please revert the breaking change in tsc -w that clears output #24123

Closed
@hoegge

Description

@hoegge

Search Terms

tsc -w
clear

#17756

Suggestion

Revert the default clearing of console on re-compile using tsc -w

The current (new) imlementation is really annoying. All scripts and packages by others using tsc -w now clears the console and people have to modify packages and scripts. All the people who likes it to clear the screen (as a new) feature should use an option instead of breaking existing functionality.

(@k0pernikus)

Summary:

tsc -w should not clear screen on re-compile. Add another option like --clearOutputWatch or similar.

Use Cases

Any scripts using tsc

Examples

n.a.

Checklist

My suggestion meets these guidelines:
[x] This wouldn't be a breaking change in existing TypeScript / JavaScript code (it would "UNBREAK" TypeScript after you broke it)
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. new expression-level syntax)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions