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:
parent
327243cebd
commit
44d9132040
1 changed files with 4 additions and 3 deletions
|
|
@ -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', ''));
|
||||
|
|
|
|||
Loading…
Reference in a new issue