Skip to content

Commit

Permalink
Add getDirectories to host
Browse files Browse the repository at this point in the history
  • Loading branch information
ivogabe committed Sep 17, 2016
1 parent 34e8493 commit ff163bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export class Host implements ts.CompilerHost {
this.externalResolve = externalResolve;
this.libFileName = libFileName;

this.realpath = typescript.createCompilerHost({})['realpath'];
const fallback = typescript.createCompilerHost({});
this.realpath = fallback['realpath'];
this.getDirectories = fallback['getDirectories'];

this.reset();
}
Expand Down Expand Up @@ -154,4 +156,5 @@ export class Host implements ts.CompilerHost {
}

realpath: any;
getDirectories: any;
}

0 comments on commit ff163bf

Please sign in to comment.