Skip to content

Commit

Permalink
fix(docs): only load modules if package has entry point (#2981)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Attard <[email protected]>
  • Loading branch information
erickzhao and MarshallOfSound authored Oct 21, 2022
1 parent 4d80cb3 commit bb29cd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/gen-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as typedoc from 'typedoc';
const typedocApp = new typedoc.Application();
typedocApp.bootstrap({
entryPointStrategy: 'packages',
entryPoints: packages.map((pkg) => pkg.path),
entryPoints: packages.filter((pkg) => !!pkg.manifest.main).map((pkg) => pkg.path),
excludeExternals: true,
excludeInternal: true,
excludePrivate: true,
Expand Down
2 changes: 1 addition & 1 deletion tools/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const PACKAGES_DIR = path.resolve(BASE_DIR, 'packages');
export interface Package {
path: string;
name: string;
manifest: object; // the parsed package.json
manifest: Record<string, unknown>; // the parsed package.json
}

export const getPackageInfo = async (): Promise<Package[]> => {
Expand Down

0 comments on commit bb29cd5

Please sign in to comment.