use temp variable for current dir.

prevents calls to the host for every file.
This commit is contained in:
Paul van Brenk 2016-04-07 16:06:29 -07:00
parent 40b22b2fca
commit 8d08be8a62

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}`);
}