Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See resulting tsconfig when using { "extends": ... }

I'm using WebStorm with my Angular project, so I have a lot of different tsconfig files (tsconfig.json, tsconfig.lib.json, tsconfig.lib.prod.json and tsconfig.spec.json).

Now most of the configuration is only in tsconfig.json, while all other extend this config. But there are also some cases, where a config is in multiple extended files and I'm wondering if they can be moved to the main file.

Is there a way to see the full tsconfig.lib.json, with the extended options?

AFAIK: Visual Studio had this option for its web.config files.

like image 516
Stefan Avatar asked Mar 08 '26 20:03

Stefan


1 Answers

You can use the --showConfig CLI argument to get the extended config file as output.

Rather than actually execute a build with the other input options and config files, show the final implied config file in the output.

Example:

tsc -p path/to/tsconfig.lib.json --showConfig
like image 123
ford04 Avatar answered Mar 11 '26 17:03

ford04



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!