Use recursive glob in TypeDoc config to find nested middleware packages (#1478)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
This commit is contained in:
Jonathan Hefner 2026-02-10 17:34:10 -06:00 • committed by GitHub
commit 44d9132040
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,9 +3,10 @@ import fg from 'fast-glob';
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
// Find all package.json files in packages/*/ and build package list
const packageJsonPaths = await fg('packages/*/package.json', {
cwd: process.cwd()
// Find all package.json files under packages/ and build package list
const packageJsonPaths = await fg('packages/**/package.json', {
cwd: process.cwd(),
ignore: ['**/node_modules/**']
});
const packages = packageJsonPaths.map(p => {
const rootDir = join(process.cwd(), p.replace('/package.json', ''));