Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): only load modules if package has entry point #2981

Merged
merged 2 commits into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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