How can I pass multiple source files to the TypeScript compiler?

后端 未结 6 1270
忘掉有多难
忘掉有多难 2020-12-14 05:54

TypeScript is designed for large-scale JavaScripty projects which typically consist of multiple internally produced files along with externally produced libraries. How does

6条回答
  •  忘掉有多难
    2020-12-14 06:39

    In case anyone needs this for Mac OS X:

    find . -name "*.ts" -type f >ts-files.txt
    /usr/local/bin/tsc @ts-files.txt --module CommonJS --out ./Deploy/ServerMain.js --removeComments
    rm ts-files.txt
    

提交回复
热议问题