Skip to content

Commit 13f0c1b

Browse files
committed
fix: handle multi-export single module repo
1 parent 9afe717 commit 13f0c1b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/docs/readme-updater-plugin.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@ export function load (app) {
2727
return false
2828
}
2929

30-
// single-module repo
30+
// single-module repo, single export
3131
if (urlMapping.url === 'modules.html') {
3232
return true
3333
}
3434

35+
// single-module repo, multiple export
36+
if (urlMapping.url === 'modules/index.html') {
37+
return true
38+
}
39+
3540
// mono-repo and the model name matches a package name
3641
if (isMonorepoParent && projects[urlMapping.model.name] != null) {
3742
return true

0 commit comments

Comments
 (0)