这是我的tsconfig.json的片段,由typescript编译器用来为我的ts文件生成JS文件。从typings目录中挑选文件,生成的源应该在" ./ app / scripts" 目录中创建。由于某种原因,typescript编译器在" ./ app / scripts / typings" 目录下生成js脚本。如何强制打字稿跳过打字目录?
"compilerOptions": {
"target": "es5",
"module": "amd",
"moduleResolution": "node",
"sourceMap": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"listFiles": true,
"diagnostics": true,
"outDir": "./app/scripts"
},
"filesGlob": [
"./app/typings/**/*.ts",
"./typings/main.d.ts",
"./app/test/typings/**/*.ts"
],
"files": [
"./app/typings/App.ts",
"./app/typings/services/AService.ts"
]
我也试过从命令行传递--outDir参数。它在" ./ app / scripts / typings"
下创建js脚本