From 8060afd54536d537ad48e8096acf8c8e0829b79b Mon Sep 17 00:00:00 2001 From: Aayla Secura Date: Mon, 16 Dec 2024 17:55:24 +0200 Subject: [PATCH] Reproducing bug #2811 Requires entryPointStrategy expand and the following import structure: file 1 exports something file 2 re-exports this file 3 re-exports everything from file 2 but is marked as "@ignore" --- src/index-debug.ts | 6 ++++++ src/index.ts | 5 +---- src/settings.ts | 3 +++ typedoc.json | 12 ++++++------ 4 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 src/index-debug.ts create mode 100644 src/settings.ts diff --git a/src/index-debug.ts b/src/index-debug.ts new file mode 100644 index 0000000..2977952 --- /dev/null +++ b/src/index-debug.ts @@ -0,0 +1,6 @@ +/** + * @module + * @ignore + */ + +export * from "./index"; diff --git a/src/index.ts b/src/index.ts index c0a8215..9131c81 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1 @@ -/** - * Some code reproducing a bug. - */ -export const bug = 123; +export { settings } from "./settings"; diff --git a/src/settings.ts b/src/settings.ts new file mode 100644 index 0000000..2df487a --- /dev/null +++ b/src/settings.ts @@ -0,0 +1,3 @@ +export const settings = { + someSetting: false, +}; diff --git a/typedoc.json b/typedoc.json index c990e40..62602ce 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,8 +1,8 @@ { - "$schema": "https://typedoc.org/schema.json", - "entryPoints": ["src/index.ts"], - - "treatWarningsAsErrors": true, - "out": "docs", - "json": "docs/docs.json" + "$schema": "https://typedoc.org/schema.json", + "entryPoints": ["src/"], + "entryPointStrategy": "expand", + "treatWarningsAsErrors": true, + "out": "docs", + "json": "docs/docs.json" }