Typescript将两个目录一起编译

时间:2019-03-25 15:47:29

标签: angular typescript

我在一个目录中有两个Angular应用,如下所示,

enter image description here

现在,编译器仅适用于src /文件夹。

tsc -p src/ && webpack --env=dev --progress --profile --colors

如何将两个文件夹一起编译?

1 个答案:

答案 0 :(得分:0)

我将以下内容包含到tsconfig.json文件中,

"include": [
        "src/**/*",
        "src-charts/**/*"
    ]

打字稿现在可以同时编译两个应用程序。