build(npm): update to typescript@1.7.3 + fix broccoli-typescript + fix src

This commit is contained in:
Igor Minar
2015-12-09 13:42:36 -08:00
committed by Igor Minar
parent 796eee1e6f
commit 51cb7586e0
9 changed files with 21 additions and 20 deletions

View File

@ -44,9 +44,10 @@ class DiffingTSCompiler implements DiffingBroccoliPlugin {
this.rootFilePaths = [];
}
// in tsc 1.7.x this api was renamed to parseJsonConfigFileContent
// the conversion is a bit awkward, see https://github.com/Microsoft/TypeScript/issues/5276
this.tsOpts = ts.parseConfigFile({compilerOptions: options, files: []}, null, null).options;
// in 1.8 use convertCompilerOptionsFromJson
this.tsOpts =
ts.parseJsonConfigFileContent({compilerOptions: options, files: []}, null, null).options;
// TODO: the above turns rootDir set to './' into an empty string - looks like a tsc bug
// check back when we upgrade to 1.7.x