是否可以实现如下所示的项目结构,而无需 Typescript 编译器重新编译代码的共享部分(在本例中为测试重新编译 src
),并获得跨项目重构支持?
./
|- dist/
| |- ... /* output of tsc -p src */
|- src/
| |- ... /* bunches of files/folder etc. etc. */
| |- tsconfig.json // outDir is ../dist and declarations is true
|- test/
| |- ... /* lotsa tests */
| |- tsconfig.json
最佳答案
关于node.js - NodeJS Typescript 跨项目引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44572105/