From a5e5b1055d099572aed73d217aa6a04e4990dfc6 Mon Sep 17 00:00:00 2001 From: dhmlau Date: Tue, 5 Dec 2023 21:28:54 -0500 Subject: [PATCH] fix(tsdocs): disable some repos to gen tsdocs Signed-off-by: dhmlau --- packages/tsdocs/src/monorepo-api-extractor.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/tsdocs/src/monorepo-api-extractor.ts b/packages/tsdocs/src/monorepo-api-extractor.ts index d963838103cd..5138428bc1b9 100644 --- a/packages/tsdocs/src/monorepo-api-extractor.ts +++ b/packages/tsdocs/src/monorepo-api-extractor.ts @@ -20,8 +20,8 @@ import path from 'path'; import { DEFAULT_APIDOCS_EXTRACTION_PATH, ExtractorOptions, - getPackagesWithTsDocs, LernaPackage, + getPackagesWithTsDocs, typeScriptPath, } from './helper'; const debug = debugFactory('loopback:tsdocs'); @@ -67,6 +67,17 @@ export async function runExtractorForMonorepo(options: ExtractorOptions = {}) { const errors: Record = {}; for (const pkg of packages) { + // TODO: api-extractor failed to generate apidocs for the repos below. + // Excluding them for now + // https://github.com/loopbackio/loopback-next/issues/10205 + if ( + pkg.name === '@loopback/typeorm' || + pkg.name === '@loopback/boot' || + pkg.name === '@loopback/express' || + pkg.name === '@loopback/repository' || + pkg.name === '@loopback/service-proxy' + ) + continue; /* istanbul ignore if */ const err = invokeExtractorForPackage(pkg, options); if (err != null) {