【发布时间】:2016-05-25 20:44:59
【问题描述】:
我有以下tsconfig.json,我想在build/ 文件夹中获得转译输出
{
"compileOptions": {
"module": "amd",
"noImplicitAny": "true",
"removeComments": "true",
"target": "es5",
"sourceMaps": true,
"outDir": "build/"
},
}
但是它不起作用。我让它工作的唯一方法是将outDir 作为标志传递给tsc。
我找到了一个question,它询问了我遇到的相同问题。但是我使用的是打字稿版本 1.8.10。我已经在那里尝试了建议的解决方案,但仍然无法正常工作。
任何人都知道我如何让tsc 读取outDir 在tsconfig.json 文件中设置的属性?
【问题讨论】:
标签: typescript tsconfig