我有这个文件夹结构:
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
?