Skip to content

Commit

Permalink
Fix the lib file detection
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Jan 23, 2018
1 parent df9a387 commit fdacf55
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/servicesHost.ts
Expand Up @@ -179,7 +179,7 @@ export function makeWatchHost(
useCaseSensitiveFileNames: () => compiler.sys.useCaseSensitiveFileNames,
getNewLine: () => newLine,
getCurrentDirectory,
getDefaultLibFileName,
getDefaultLibFileName: options => compiler.getDefaultLibFilePath(options),

fileExists,
readFile: readFileWithCachingText,
Expand Down Expand Up @@ -209,10 +209,6 @@ export function makeWatchHost(
};
return watchHost;

function getDefaultLibFileName(options: typescript.CompilerOptions) {
return path.join(path.dirname(compiler.sys.getExecutingFilePath()), compiler.getDefaultLibFileName(options));
}

function getRootFileNames() {
return Object.keys(files).filter(filePath => filePath.match(scriptRegex));
}
Expand Down

0 comments on commit fdacf55

Please sign in to comment.