【问题标题】:Compile single .ts file to stdout将单个 .ts 文件编译到标准输出
【发布时间】:2022-03-11 07:35:30
【问题描述】:

我希望将单个 .ts 文件编译为标准输出,如下所示:

tsc foo.ts > foo.js

这有可能吗?我想在不使用 tsconfig.json 文件的情况下控制输出的去向。

【问题讨论】:

    标签: tsc typescript3.0


    【解决方案1】:
    tsc foo.ts --out /dev/stdout | another-program
    

    来自this discussion

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-07-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-31
      • 2019-02-27
      • 2021-03-22
      相关资源
      最近更新 更多