Skip to content

Commit d706e30

Browse files
committed
Implement Host#directoryExists to support @types discovery, fix #422
1 parent 0dc5e08 commit d706e30

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/host.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,9 @@ export class Host implements ts.CompilerHost {
8484
return this.fallback.getSourceFile(fileName, languageVersion, onError);
8585
}
8686

87-
realpath = (path: string) => {
88-
return this.fallback.realpath(path);
89-
}
87+
realpath = (path: string) => this.fallback.realpath(path);
9088

91-
getDirectories = (path: string) => {
92-
return this.fallback.getDirectories(path);
93-
}
89+
getDirectories = (path: string) => this.fallback.getDirectories(path);
90+
91+
directoryExists = (path: string) => this.fallback.directoryExists(path);
9492
}

0 commit comments

Comments
 (0)