Skip to content

Commit 6b554fa

Browse files
committed
fix: ignore monorepo root when updating readme from tag
1 parent 876a43a commit 6b554fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/docs/readme-updater-plugin.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ export function load (app) {
5151
}
5252

5353
if (projects[project] == null) {
54+
if (page.model instanceof td.ProjectReflection && page.model.variant === 'project') {
55+
// this is the monorepo root (monorepo packages have the variant
56+
// "declaration")
57+
return null
58+
}
59+
5460
throw new Error(`Could not derive project name from url mapping model "${page.model.name}" with parent "${page.model.parent?.name}"`)
5561
}
5662

0 commit comments

Comments
 (0)