Skip to content

Commit

Permalink
fixes #1014 (#1015)
Browse files Browse the repository at this point in the history
* fixes #1014

* avoids processing definition files in getEmitOutput

* uses instance.compiler instead get Extension enum
  • Loading branch information
gvinaccia authored and johnnyreilly committed Sep 20, 2019
1 parent e9ef049 commit dff1e17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/instances.ts
Expand Up @@ -567,6 +567,9 @@ export function isReferencedFile(instance: TSInstance, filePath: string) {
}

export function getEmitOutput(instance: TSInstance, filePath: string) {
if (fileExtensionIs(filePath, instance.compiler.Extension.Dts)) {
return [];
}
const program = ensureProgram(instance);
if (program !== undefined) {
const sourceFile = program.getSourceFile(filePath);
Expand Down

0 comments on commit dff1e17

Please sign in to comment.