Skip to content

Commit

Permalink
Do not skip empty entry points
Browse files Browse the repository at this point in the history
Resolves #2007
  • Loading branch information
Gerrit0 committed Jul 23, 2022
1 parent 4f2a12f commit d4d3b8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

### Bug Fixes

- TypeDoc will no longer skip entry points which have no exports, #2007.
If using `"entryPointStrategy": "expand"`, this change may result in new pages being added to your documentation.
If this is not desired, you can use the `exclude` option to filter them out.
- Fixed missing comments on callable variable-functions constructed indirectly, #2008.
- Fixed multiple reflections mapping to the same file name on case insensitive file systems, #2012.

Expand Down
10 changes: 1 addition & 9 deletions src/lib/converter/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,6 @@ export class Converter extends ChildableComponent<
const symbol = getSymbolForModuleLike(context, node);
let moduleContext: Context;

const allExports = getExports(context, node, symbol);

if (allExports.every((exp) => this.shouldIgnore(exp))) {
this.owner.logger.verbose(
`All members of ${entryName} are excluded, ignoring entry point.`
);
return;
}

if (singleEntryPoint) {
// Special case for when we're giving a single entry point, we don't need to
// create modules for each entry. Register the project as this module.
Expand Down Expand Up @@ -302,6 +293,7 @@ export class Converter extends ChildableComponent<
moduleContext = context.withScope(reflection);
}

const allExports = getExports(context, node, symbol);
for (const exp of allExports.filter((exp) =>
isDirectExport(context.resolveAliasedSymbol(exp), node)
)) {
Expand Down

0 comments on commit d4d3b8f

Please sign in to comment.