Skip to content

Commit 0867451

Browse files
committed
feat(typedoc): support a main entry point merged into the project
With `@mergeModuleWith <project>`, the exports of the main entry point are the project's own, and their URLs have no module prefix (`functions/build.md`). The exports of the other entry points are still noted as exported from them. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a981f55 commit 0867451

5 files changed

Lines changed: 56 additions & 26 deletions

File tree

‎packages/typedoc/src/__tests__/fixtures/index.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* The bundler, whose exports are the project's own.
3+
*
4+
* @module fixture
5+
* @mergeModuleWith <project>
6+
*/
7+
18
/**
29
* Options of a build.
310
*/
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Utilities for plugins.
3+
*
4+
* @module fixture/utils
5+
*/
6+
7+
export { build } from './index.js';
8+
9+
/**
10+
* Hashes a module's code.
11+
*
12+
* @param code The code.
13+
*/
14+
export function hash(code: string): string {
15+
return code;
16+
}

‎packages/typedoc/src/__tests__/index.test.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const generateFixture = async options => {
2222

2323
const app = await Application.bootstrapWithPlugins({
2424
plugin: [load],
25-
entryPoints: [join(FIXTURES, 'index.ts')],
25+
entryPoints: [join(FIXTURES, 'index.ts'), join(FIXTURES, 'utils.ts')],
2626
tsconfig: join(FIXTURES, 'tsconfig.json'),
2727
readme: 'none',
2828
logLevel: 'Error',

0 commit comments

Comments
 (0)