fix(docs): only load modules if package has entry point (#2981)
Co-authored-by: Samuel Attard <sattard@salesforce.com>
This commit is contained in:
Родитель
4d80cb3c7e
Коммит
bb29cd51ed
|
@ -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,
|
||||
|
|
|
@ -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[]> => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче