我在我的 Angular 项目中使用 WebStorm,所以我有很多不同的 tsconfig 文件(tsconfig.json
、tsconfig.lib.json
、 tsconfig.lib.prod.json
和 tsconfig.spec.json
)。
现在大部分配置只在 tsconfig.json
中,而所有其他的都扩展了这个配置。但也有一些情况,一个配置在多个扩展文件中,我想知道它们是否可以移动到主文件中。
有没有办法查看完整的 tsconfig.lib.json
以及扩展选项?
AFAIK:Visual Studio 为其 web.config 文件提供了此选项。
最佳答案
您可以使用 --showConfig
获取扩展配置文件作为输出的 CLI 参数。
Rather than actually execute a build with the other input options and config files, show the final implied config file in the output.
例子:
tsc -p path/to/tsconfig.lib.json --showConfig
关于typescript - 使用 { "extends": . .. } 时查看生成的 tsconfig,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60299620/