-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Suggestion: an option to make --showConfig more verbose #33211
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
Comments
Maybe this is how showConfig should behave all the time? |
Yes. If I want to see only what's in the tsconfig, there's already |
It also would be amazing if this verbose mode covers the
|
I came here for EXACTLY that... We added "an additional" lib to 1 project... and didn't realise it would REMOVE all the others and ONLY add the 1 lib... and we couldn't find an easy to consume definitive list that explains what all the libs we should be getting if we didn't override lib.. Either that, or add an "appendLib".. because we only want to 'add' never 'replaceAll' |
Yeah, judging on the original intent (#15213) I think we can safely extend I think we should detect for stdin on terminal, don't have it then act as today, maybe it's being used to pipe the tsconfig. Otherwise, we use colors we show the resolved options in gray e.g: I'd help get a PR for this merged 👍🏻 |
I don't know if that functionality should be a part of Please let me know if somebody finds this tool helpful. If so it worths to develop it :) |
This would also help confirm when the docs are incorrect, which happens more often than you'd think. |
Landed here because I'm wondering what, exactly, the default setting for The documentation for |
Another argument for this is that other tools like |
How hard can this be, considering the configuration is loaded? Trying to debug a Vue 3 config that references/extends at least four other files. What a nightmare. |
Really need this for debugging |
See the implementation of the command, which uses I guess to make the command output all effective compiler options is not easy, as code for that seems to be distributed in the codebase. |
Search Terms
showConfig
,verbose
,verbosity
Suggestion
Currently, the
--showConfig
option will only print the compiler options that are provided by the giventsconfig.json
.The suggestion is to introduce another command line option to use together with
--showConfig
, for example--verbose
, that would additionally print out the default values of all of the missing compiler options.Use Cases
This new option hopes to make debugging configuration files easier by explicitly displaying the value of every compiler option.
Examples
Given the following folder structure:
And the following
tsconfig.json
:Running the command
tsc --showConfig
produces:Here's an example output of
tsc --showConfig --verbose
. It was derived in the following way:out
,reactNamespace
, andskipDefaultLibCheck
)undefined
.[1] The Handbook says
pretty
should betrue
unless piping or redirecting output to file, so the desired value here may be ambiguous?[2]
locale
andnewLine
are platform-specific.[3]
rootDir
would need to be calculated so it can be displayed.Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: