Skip to content

Commit

Permalink
Remove faulty caching of ts.sys.readDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Mar 2, 2020
1 parent 3eb46e0 commit 63ca43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -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)),
Expand Down

0 comments on commit 63ca43a

Please sign in to comment.