简体   繁体   English

打字稿将两个目录编译在一起

[英]Typescript compile two directories together

I have two angular apps within one directory like below,我在一个目录中有两个角度应用程序,如下所示,

在此处输入图片说明

Right now the compiler only works for the src/ folder.现在编译器只适用于 src/ 文件夹。

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

How can I compile both folders together?如何将两个文件夹编译在一起?

I included the following into the tsconfig.json file,我将以下内容包含在 tsconfig.json 文件中,

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

The typescript transpiles both apps now.打字稿现在可以转换这两个应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM