Skip to content

Commit 60a262d

Browse files
committed
Fix another packages mode bug
1 parent 154e09d commit 60a262d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Fixed relative link detection for markdown links containing code in their label, #2606.
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.
15+
- Fixed an issue where relatively-linked files would not be copied to the output directory in packages mode.
1516
- `.jsonc` configuration files are now properly read as JSONC, rather than being passed to `require`.
1617

1718
### Thanks!

src/lib/models/reflections/declaration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ export class DeclarationReflection extends ContainerReflection {
318318
if (obj.variant === "project") {
319319
this.kind = ReflectionKind.Module;
320320
this.packageVersion = obj.packageVersion;
321+
this.project.files.fromObject(de, obj.files || {});
321322

322323
de.defer(() => {
323324
for (const [id, sid] of Object.entries(obj.symbolIdMap || {})) {

src/lib/models/reflections/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ export class ProjectReflection extends ContainerReflection {
400400
if (obj.readme) {
401401
this.readme = Comment.deserializeDisplayParts(de, obj.readme);
402402
}
403-
this.files.fromObject(de, obj.files);
403+
this.files.fromObject(de, obj.files || {});
404404

405405
de.defer(() => {
406406
// Unnecessary conditional in release

0 commit comments

Comments
 (0)