Node.js NodeJS类型脚本跨项目引用
如果没有Typescript编译器重新编译代码的共享部分(在本例中,重新编译测试的Node.js NodeJS类型脚本跨项目引用,node.js,typescript,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
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
看来这是开着的;和