From bbf1bc8e1483c249d91070f7d7479623294637f3 Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Fri, 13 May 2016 14:34:04 -0700 Subject: [PATCH] fix(broccoli-typescript): properly parse compilerOptions (#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`. --- lib/broccoli/broccoli-typescript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/broccoli/broccoli-typescript.js b/lib/broccoli/broccoli-typescript.js index a8df2d04acc5..f6971debb1ee 100644 --- a/lib/broccoli/broccoli-typescript.js +++ b/lib/broccoli/broccoli-typescript.js @@ -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 = '';