Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js NodeJS类型脚本跨项目引用_Node.js_Typescript - Fatal编程技术网

Node.js NodeJS类型脚本跨项目引用

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

如果没有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
看来这是开着的;和