我正在尝试编译并将所有ts文件从dev
文件夹复制到app
文件夹
所以我想要的是将所有编译的文件复制到app文件夹的根目录,如app/app.component.js
,但目前结果为app/dev/app.component.js
我怎样才能做到这一点?
这是我目前的tsconfig
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"outDir": "./app"
},
"filesGlob": [
"./dev/**/*.ts",
"!./node_modules/**/*.ts"
],
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
],
"atom": {
"rewriteTsconfig": true
}
}
答案 0 :(得分:0)
您是否考虑过" rootDir"选项?
https://www.typescriptlang.org/docs/handbook/compiler-options.html