Skip to content

Commit

Permalink
Do not export ts namespace import.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Oct 6, 2018
1 parent 319db5c commit 7fbbf3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/generation/flattenDeclarationFiles.ts
Expand Up @@ -9,7 +9,8 @@ import { Project, SourceFile, TypeGuards, SyntaxKind } from "ts-simple-ast";
export function flattenDeclarationFiles(project: Project, mainFile: SourceFile) {
const declarationFiles = project.getSourceFiles(["dist-declarations/**/*.d.ts", "!dist-declarations/codeBlockWriter/code-block-writer.d.ts"]);
const codeBlockWriterFile = project.getSourceFileOrThrow("dist-declarations/codeBlockWriter/code-block-writer.d.ts");
const exportedDeclarations = mainFile.getExportedDeclarations().filter(d => d.getSourceFile() !== mainFile);
const exportedDeclarations = mainFile.getExportedDeclarations()
.filter(d => d.getKind() !== SyntaxKind.NamespaceImport); // ignore ts namespace export (todo: make this more specific)
const flattenedCompilerApiExports = [
"SyntaxKind", "CompilerOptions", "EmitHint", "ScriptKind", "NewLineKind", "LanguageVariant", "ScriptTarget",
"TypeFlags", "ObjectFlags", "SymbolFlags", "TypeFormatFlags", "DiagnosticCategory", "EditorSettings",
Expand Down
1 change: 0 additions & 1 deletion tslint.json
Expand Up @@ -19,7 +19,6 @@
"ban-types": false,
"max-classes-per-file": false,
"no-unused-expression": false,
"no-var-requires": false,
"one-line": [
true,
"check-catch",
Expand Down

0 comments on commit 7fbbf3d

Please sign in to comment.