Skip to content

Commit

Permalink
fix: handle multi-export single module repo
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 30, 2023
1 parent 9afe717 commit 13f0c1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/docs/readme-updater-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@ export function load (app) {
return false
}

// single-module repo
// single-module repo, single export
if (urlMapping.url === 'modules.html') {
return true
}

// single-module repo, multiple export
if (urlMapping.url === 'modules/index.html') {
return true
}

// mono-repo and the model name matches a package name
if (isMonorepoParent && projects[urlMapping.model.name] != null) {
return true
Expand Down

0 comments on commit 13f0c1b

Please sign in to comment.