Recursively collect every Module-kind reflection in a TypeDoc project.
TypeDoc emits Module reflections for each resolved entry point (one per
source file/package). When a project has no module children (a single flat
entry point), the project itself is treated as a single module so that the
output always has at least one module - matching doc-forge's model.
Recursively collect every Module-kind reflection in a TypeDoc project.
TypeDoc emits Module reflections for each resolved entry point (one per source file/package). When a project has no module children (a single flat entry point), the project itself is treated as a single module so that the output always has at least one module - matching doc-forge's model.