use temp variable for current dir.
prevents calls to the host for every file.
This commit is contained in:
parent
40b22b2fca
commit
8d08be8a62
1 changed files with 3 additions and 1 deletions
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue