Skip to content

Commit 7ae902d

Browse files
committed
Handel compiler options correctelly
1 parent 0d126e2 commit 7ae902d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/harness/rwcRunner.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ module RWC {
7777
let tsconfigFile = ts.forEach(ioLog.filesRead, f => isTsConfigFile(f) ? f : undefined);
7878
if (tsconfigFile) {
7979
let tsconfigFileContents = getHarnessCompilerInputUnit(tsconfigFile.path);
80-
let configParseResult = ts.parseConfigFile(tsconfigFileContents.content, Harness.IO, ts.getDirectoryPath(tsconfigFile.path));
80+
let parsedTsconfigFileContents = ts.parseConfigFileText(tsconfigFile.path, tsconfigFileContents.content);
81+
let configParseResult = ts.parseConfigFile(parsedTsconfigFileContents.config, Harness.IO, ts.getDirectoryPath(tsconfigFile.path));
8182
fileNames = configParseResult.fileNames;
83+
opts.options = ts.extend(opts.options, configParseResult.options);
8284
}
8385

8486
// Load the files

0 commit comments

Comments
 (0)