Skip to content

Commit

Permalink
Fix another packages mode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jun 22, 2024
1 parent 154e09d commit 60a262d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Fixed relative link detection for markdown links containing code in their label, #2606.
- Fixed an issue with packages mode where TypeDoc would use (much) more memory than required, #2607.
- TypeDoc will no longer crash when asked to render highlighted code for an unsupported language, #2609.
- Fixed an issue where relatively-linked files would not be copied to the output directory in packages mode.
- `.jsonc` configuration files are now properly read as JSONC, rather than being passed to `require`.

### Thanks!
Expand Down
1 change: 1 addition & 0 deletions src/lib/models/reflections/declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ export class DeclarationReflection extends ContainerReflection {
if (obj.variant === "project") {
this.kind = ReflectionKind.Module;
this.packageVersion = obj.packageVersion;
this.project.files.fromObject(de, obj.files || {});

de.defer(() => {
for (const [id, sid] of Object.entries(obj.symbolIdMap || {})) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/models/reflections/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export class ProjectReflection extends ContainerReflection {
if (obj.readme) {
this.readme = Comment.deserializeDisplayParts(de, obj.readme);
}
this.files.fromObject(de, obj.files);
this.files.fromObject(de, obj.files || {});

de.defer(() => {
// Unnecessary conditional in release
Expand Down

0 comments on commit 60a262d

Please sign in to comment.