Skip to content

Commit

Permalink
fix(app): parsing .d.ts
Browse files Browse the repository at this point in the history
fix angularexpo / angular2-quiz-app
  • Loading branch information
vogloblinsky committed Jan 23, 2017
1 parent a4e9c9d commit e38b571
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export function compilerHost(transpileOptions: any): ts.CompilerHost {
if (fileName === 'lib.d.ts') {
return undefined;
}
if (fileName.substr(-5) === '.d.ts') {
return undefined;
}

if (path.isAbsolute(fileName) === false) {
fileName = path.join(transpileOptions.tsconfigDirectory, fileName);
Expand Down

0 comments on commit e38b571

Please sign in to comment.