Skip to content

Commit bb29cd5

Browse files
fix(docs): only load modules if package has entry point (#2981)
Co-authored-by: Samuel Attard <sattard@salesforce.com>
1 parent 4d80cb3 commit bb29cd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/gen-docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as typedoc from 'typedoc';
88
const typedocApp = new typedoc.Application();
99
typedocApp.bootstrap({
1010
entryPointStrategy: 'packages',
11-
entryPoints: packages.map((pkg) => pkg.path),
11+
entryPoints: packages.filter((pkg) => !!pkg.manifest.main).map((pkg) => pkg.path),
1212
excludeExternals: true,
1313
excludeInternal: true,
1414
excludePrivate: true,

tools/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const PACKAGES_DIR = path.resolve(BASE_DIR, 'packages');
77
export interface Package {
88
path: string;
99
name: string;
10-
manifest: object; // the parsed package.json
10+
manifest: Record<string, unknown>; // the parsed package.json
1111
}
1212

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

0 commit comments

Comments
 (0)