Clean, etc

This commit is contained in:
Ryan Cavanaugh
2018-05-21 17:47:58 -07:00
parent b1dedf2540
commit 7e0825a3e7
7 changed files with 350 additions and 68 deletions

View File

@@ -189,7 +189,10 @@ namespace ts {
getEnvironmentVariable: name => sys.getEnvironmentVariable ? sys.getEnvironmentVariable(name) : "",
getDirectories: (path: string) => sys.getDirectories(path),
realpath,
readDirectory: (path, extensions, include, exclude, depth) => sys.readDirectory(path, extensions, include, exclude, depth)
readDirectory: (path, extensions, include, exclude, depth) => sys.readDirectory(path, extensions, include, exclude, depth),
getModifiedTime: path => sys.getModifiedTime(path),
setModifiedTime: (path, date) => sys.setModifiedTime(path, date),
deleteFile: path => sys.deleteFile(path)
};
}
@@ -2692,7 +2695,7 @@ namespace ts {
/**
* Returns the target config filename of a project reference
*/
function resolveProjectReferencePath(host: CompilerHost, ref: ProjectReference): string | undefined {
export function resolveProjectReferencePath(host: CompilerHost, ref: ProjectReference): string | undefined {
if (!host.fileExists(ref.path)) {
return combinePaths(ref.path, "tsconfig.json");
}