Skip to content

Commit

Permalink
fix: Fix ts compiler types not being exported from declaration file.
Browse files Browse the repository at this point in the history
I didn't notice they weren't being exported.
  • Loading branch information
dsherret committed Feb 14, 2018
1 parent 6aea6d5 commit 0755aa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code-generation/flattenDeclarationFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ mainFile.addImportDeclaration({
moduleSpecifier: mainFile.getRelativePathToSourceFileAsModuleSpecifier(compilerApiFile)
});

mainFile.addExportDeclaration({ moduleSpecifier: mainFile.getRelativePathToSourceFileAsModuleSpecifier(compilerApiFile) });

// update the main.d.ts file
mainFile.getClassOrThrow("TsSimpleAst").setIsDefaultExport(true);
mainFile.replaceWithText(mainFile.getFullText().replace(/compiler\.([A-Za-z]+)/g, "$1"));
Expand Down

0 comments on commit 0755aa2

Please sign in to comment.