diff --git a/src/compiler/tsc.ts b/src/compiler/tsc.ts index 9734ba6689b..c2199cf7345 100644 --- a/src/compiler/tsc.ts +++ b/src/compiler/tsc.ts @@ -19,8 +19,10 @@ namespace ts { return; } + const currentDir = sys.getCurrentDirectory(); + for (const file of files) { - const filepath = getNormalizedAbsolutePath(file, sys.getCurrentDirectory()); + const filepath = getNormalizedAbsolutePath(file, currentDir); sys.write(`TSFILE: ${filepath}${sys.newLine}`); }