【发布时间】:2016-02-10 15:59:47
【问题描述】:
我正在从事一个结构如下的项目:
\
|- built
|- src
|- perf
|- tsconfig.json
|- typings
|- tsconfig.json
我的tsconfig.json 在根目录
"target": "es6",
"outDir": "built",
"rootDir": "./src",
我需要对 perf 文件夹进行不同的配置,例如不同的目标。
"target": "es5",
但是,我的 typings 文件夹位于我的项目的根目录中,而不是在 perf 文件夹中。所以执行tsc ./perf 会导致很多错误。
有没有办法告诉 TypeScript 在哪里寻找 typings?我正在使用
npm install -g typescript@next
// typescript@1.8.0-dev.20151109
或者根据文件夹有不同配置的方法?
【问题讨论】:
标签: typescript tsconfig