NodeJS Typescript跨项目引用

时间:2017-06-15 16:02:04

标签: node.js typescript

是否有可能实现如下所示的项目结构,而没有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

1 个答案:

答案 0 :(得分:1)