use temp variable for current dir.

prevents calls to the host for every file.
This commit is contained in:
Paul van Brenk committed 2016-04-07 16:06:29 -07:00
1 parent 40b22b2fca
commit 8d08be8a62
1 file changed
+3 -1
+3 -1
View File
@@ -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}`);
}