Skip to content

Commit 6ef1053

Browse files
committed
Fix even more packages bugs
1 parent 60a262d commit 6ef1053

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
- Fixed an issue with packages mode where TypeDoc would use (much) more memory than required, #2607.
1414
- TypeDoc will no longer crash when asked to render highlighted code for an unsupported language, #2609.
1515
- Fixed an issue where relatively-linked files would not be copied to the output directory in packages mode.
16+
- Fixed an issue where modifier tags were not applied to top level modules in packages mode.
17+
- Fixed an issue where excluded tags were not removed from top level modules in packages mode.
1618
- `.jsonc` configuration files are now properly read as JSONC, rather than being passed to `require`.
1719

1820
### Thanks!

src/lib/converter/plugins/CommentPlugin.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,8 @@ export class CommentPlugin extends ConverterComponent {
237237

238238
if (
239239
reflection.kindOf(
240-
ReflectionKind.Module | ReflectionKind.Namespace,
241-
) ||
242-
reflection.kind === ReflectionKind.Project
240+
ReflectionKind.Project | ReflectionKind.SomeModule,
241+
)
243242
) {
244243
comment.removeTags("@module");
245244
comment.removeModifier("@packageDocumentation");
@@ -317,6 +316,11 @@ export class CommentPlugin extends ConverterComponent {
317316
* @param context The context object describing the current state the converter is in.
318317
*/
319318
private onBeginResolve(context: Context) {
319+
if (context.project.comment) {
320+
this.applyModifiers(context.project, context.project.comment);
321+
this.removeExcludedTags(context.project.comment);
322+
}
323+
320324
const project = context.project;
321325
const reflections = Object.values(project.reflections);
322326

0 commit comments

Comments
 (0)