-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[CLI DX] Improve the output for tsc --init #45714
Copy link
Copy link
Closed
Labels
Effort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Metadata
Metadata
Assignees
Labels
Effort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Type
Fields
Give feedbackNo fields configured for issues without a type.
Suggestion
As of 4.4, a run of
tsclooks like:I propose instead we change this message to provide more context about a few key values which have been set:
Example
The qualifiers for whether something should be included in the list is that
showInSimplifiedHelpView: trueand the value is not the default. In the case abouttargetises5but the default ises3for example.The cute little right aligned logo is used in
tsc --helpso you can re-use that code.It's worth noting that a user can pass in defaults via
tsc --init --target es2017, but I think that occurs before the code where you would write this, so it's just context which might be useful for testing.Exceptions
None that I can think of.