Skip to content

Commit

Permalink
Fix name collision in experimentalWatchApi code (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
MLoughry authored and johnnyreilly committed Mar 2, 2018
1 parent 8b07efb commit 095f837
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/servicesHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,19 @@ export function makeWatchHost(

fileExists,
readFile: readFileWithCachingText,
directoryExists: path => compiler.sys.directoryExists(path.normalize(path)),
getDirectories: path => compiler.sys.getDirectories(path.normalize(path)),
readDirectory: (path, extensions, exclude, include, depth) =>
directoryExists: dirPath =>
compiler.sys.directoryExists(path.normalize(dirPath)),
getDirectories: dirPath =>
compiler.sys.getDirectories(path.normalize(dirPath)),
readDirectory: (dirPath, extensions, exclude, include, depth) =>
compiler.sys.readDirectory(
path.normalize(path),
path.normalize(dirPath),
extensions,
exclude,
include,
depth
),
realpath: path => compiler.sys.resolvePath(path.normalize(path)),
realpath: dirPath => compiler.sys.resolvePath(path.normalize(dirPath)),
trace: logData => log.log(logData),

watchFile,
Expand Down

0 comments on commit 095f837

Please sign in to comment.