Skip to content

Commit

Permalink
fix(compiler): allow tsc-wrapped to be compile with TypeScript 2.0 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckjaz authored and vicb committed Aug 26, 2016
1 parent 811962b commit fc2fe00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/@angular/tsc-wrapped/src/compiler_host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export abstract class DelegatingHost implements ts.CompilerHost {
getDefaultLibLocation = () => this.delegate.getDefaultLibLocation();
writeFile: ts.WriteFileCallback = this.delegate.writeFile;
getCurrentDirectory = () => this.delegate.getCurrentDirectory();
getDirectories = (path: string): string[] =>
(this.delegate as any).getDirectories?(this.delegate as any).getDirectories(path): [];
getCanonicalFileName = (fileName: string) => this.delegate.getCanonicalFileName(fileName);
useCaseSensitiveFileNames = () => this.delegate.useCaseSensitiveFileNames();
getNewLine = () => this.delegate.getNewLine();
Expand Down

0 comments on commit fc2fe00

Please sign in to comment.