From 63ca43a7a5b4139f0c6eaa26f049522f190ef999 Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Sun, 1 Mar 2020 21:59:19 -0500 Subject: [PATCH] Remove faulty caching of ts.sys.readDirectory --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 885b0b819..3f3d10d6c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -489,7 +489,7 @@ export function create (rawOptions: CreateOptions = {}): Register { return ts.ScriptSnapshot.fromString(contents) }, readFile: cachedReadFile, - readDirectory: cachedLookup(debugFn('readDirectory', ts.sys.readDirectory)), + readDirectory: ts.sys.readDirectory, getDirectories: cachedLookup(debugFn('getDirectories', ts.sys.getDirectories)), fileExists: cachedLookup(debugFn('fileExists', fileExists)), directoryExists: cachedLookup(debugFn('directoryExists', ts.sys.directoryExists)),