Skip to content

Commit

Permalink
fix(broccoli-typescript): properly parse compilerOptions (#764)
Browse files Browse the repository at this point in the history
Previously, the settings in tsconfig would be ignored by
the broccoli-typescript plugin, because the whole config's
JSON was being provided to `convertCompilerOptionsFromJson()`
instead of just the expected `compilerOptions`.
  • Loading branch information
jeffbcross committed May 13, 2016
1 parent c302be8 commit bbf1bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/broccoli/broccoli-typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class BroccoliTypeScriptCompiler extends Plugin {

this._tsConfigFiles = tsconfig.files.splice(0);

this._tsOpts = ts.convertCompilerOptionsFromJson(tsconfig, '', null).options;
this._tsOpts = ts.convertCompilerOptionsFromJson(tsconfig.compilerOptions, '', null).options;
this._tsOpts.rootDir = '';
this._tsOpts.outDir = '';

Expand Down

0 comments on commit bbf1bc8

Please sign in to comment.