diff --git a/tools/gen-docs.ts b/tools/gen-docs.ts index ea7445a836..ec2a4037b1 100644 --- a/tools/gen-docs.ts +++ b/tools/gen-docs.ts @@ -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, diff --git a/tools/utils.ts b/tools/utils.ts index 0cc93193b5..5ae7c90439 100644 --- a/tools/utils.ts +++ b/tools/utils.ts @@ -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; // the parsed package.json } export const getPackageInfo = async (): Promise => {