fix(compiler): allow tsc-wrapped to be compile with TypeScript 2.0 (#11086)
This commit is contained in:
parent
811962b2bb
commit
fc2fe00d16
|
@ -22,6 +22,8 @@ export abstract class DelegatingHost implements ts.CompilerHost {
|
||||||
getDefaultLibLocation = () => this.delegate.getDefaultLibLocation();
|
getDefaultLibLocation = () => this.delegate.getDefaultLibLocation();
|
||||||
writeFile: ts.WriteFileCallback = this.delegate.writeFile;
|
writeFile: ts.WriteFileCallback = this.delegate.writeFile;
|
||||||
getCurrentDirectory = () => this.delegate.getCurrentDirectory();
|
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);
|
getCanonicalFileName = (fileName: string) => this.delegate.getCanonicalFileName(fileName);
|
||||||
useCaseSensitiveFileNames = () => this.delegate.useCaseSensitiveFileNames();
|
useCaseSensitiveFileNames = () => this.delegate.useCaseSensitiveFileNames();
|
||||||
getNewLine = () => this.delegate.getNewLine();
|
getNewLine = () => this.delegate.getNewLine();
|
||||||
|
|
Loading…
Reference in New Issue