tsc在dist中创建src文件夹

时间:2019-02-26 11:27:04

标签: typescript typescript3.0

我有这个文件夹结构:

import { Login } from `LoginContainerFile`;
import { Comp1} from `Comp1ContainerFile`;
import { Comp2} from `Comp2ContainerFile`;
export { Login, Comp1, Comp2 };

这是我的- src - subdir1 - subdir2

tsconfig.json

调用{ "compilerOptions": { "target": "es2015", "module": "commonjs", "sourceMap": true, "declaration": true, "outDir": "./dist", "rootDir": "./src", "strict": true, "types": [ "mocha", "node" ] } } 将导致以下文件夹结构:

./node_modules/.bin/tsc

- dist - src - subdir1 - subdir2 - src - subdir1 - subdir2 中为何包含src

0 个答案:

没有答案