typescript - 使用 { "extends": . .. } 时查看生成的 tsconfig

标签 typescript webstorm tsconfig

我在我的 Angular 项目中使用 WebStorm,所以我有很多不同的 tsconfig 文件(tsconfig.jsontsconfig.lib.json tsconfig.lib.prod.jsontsconfig.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/

相关文章:

javascript - 在调用 setState 之前修改 React 组件状态

javascript - 如何使用 TypeScript 和来自 github 的 Chartjs.definitelyTyped 来计算 Chartjs

arrays - 使用 Array.every 缩小数组类型的联合

typescript - 使用类验证器验证类中的一个字段

javascript - 获取 Angular 2 .ts 文件而不是 .d.ts 文件

javascript - JetBrains WebStorm 自动格式与 ESLint 规则无大小写声明冲突

ftp - WebStorm 8.0.4 FTP 连接失败

typescript - 带有 Typescript 导入 Assets 错误的 Gatsby (ts2307)

javascript - Webpack 5 错误 : Should not import the named export 'foo' (imported as 'bar' ) from default-exporting module

typescript - Visual Code 不断更改 tsconfig.json 中的包含文件