diff --git a/src/index.ts b/src/index.ts index 3b17a9edf..90e6cd6ec 100644 --- a/src/index.ts +++ b/src/index.ts @@ -491,7 +491,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)), @@ -591,7 +591,7 @@ export function create (rawOptions: CreateOptions = {}): Register { if (cacheContents !== undefined) return cacheContents return cachedReadFile(fileName) }, - 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)),