Skip to content

Commit bbf1bc8

Browse files
committed
fix(broccoli-typescript): properly parse compilerOptions (angular#764)
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`.
1 parent c302be8 commit bbf1bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/broccoli/broccoli-typescript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class BroccoliTypeScriptCompiler extends Plugin {
159159

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

162-
this._tsOpts = ts.convertCompilerOptionsFromJson(tsconfig, '', null).options;
162+
this._tsOpts = ts.convertCompilerOptionsFromJson(tsconfig.compilerOptions, '', null).options;
163163
this._tsOpts.rootDir = '';
164164
this._tsOpts.outDir = '';
165165

0 commit comments

Comments
 (0)