From 8d08be8a62c557f6d66ee4af2585c9a6498099a9 Mon Sep 17 00:00:00 2001 From: Paul van Brenk Date: Thu, 7 Apr 2016 16:06:29 -0700 Subject: [PATCH] use temp variable for current dir. prevents calls to the host for every file. --- src/compiler/tsc.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}`); }