Skip to content

Commit 22cac1a

Browse files
committed
Provide the complete path to tsconfig file. Fixes microsoft#9785
1 parent cccf70b commit 22cac1a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/compiler/tsc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ namespace ts {
385385
sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);
386386
return;
387387
}
388-
const configParseResult = parseJsonConfigFileContent(configObject, sys, getNormalizedAbsolutePath(getDirectoryPath(configFileName), sys.getCurrentDirectory()), commandLine.options, configFileName);
388+
const cwd = sys.getCurrentDirectory();
389+
const configParseResult = parseJsonConfigFileContent(configObject, sys, getNormalizedAbsolutePath(getDirectoryPath(configFileName), cwd), commandLine.options, getNormalizedAbsolutePath(configFileName, cwd));
389390
if (configParseResult.errors.length > 0) {
390391
reportDiagnostics(configParseResult.errors, /* compilerHost */ undefined);
391392
sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);

0 commit comments

Comments
 (0)