Skip to content

Commit fc2fe00

Browse files
chuckjazvicb
authored andcommitted
fix(compiler): allow tsc-wrapped to be compile with TypeScript 2.0 (#11086)
1 parent 811962b commit fc2fe00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/@angular/tsc-wrapped/src/compiler_host.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export abstract class DelegatingHost implements ts.CompilerHost {
2222
getDefaultLibLocation = () => this.delegate.getDefaultLibLocation();
2323
writeFile: ts.WriteFileCallback = this.delegate.writeFile;
2424
getCurrentDirectory = () => this.delegate.getCurrentDirectory();
25+
getDirectories = (path: string): string[] =>
26+
(this.delegate as any).getDirectories?(this.delegate as any).getDirectories(path): [];
2527
getCanonicalFileName = (fileName: string) => this.delegate.getCanonicalFileName(fileName);
2628
useCaseSensitiveFileNames = () => this.delegate.useCaseSensitiveFileNames();
2729
getNewLine = () => this.delegate.getNewLine();

0 commit comments

Comments
 (0)