From 13f0c1b547236c5c350aed032c578f552db16a16 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 30 Nov 2023 12:57:23 +0000 Subject: [PATCH] fix: handle multi-export single module repo --- src/docs/readme-updater-plugin.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/docs/readme-updater-plugin.js b/src/docs/readme-updater-plugin.js index 561ea5610..06723fe3b 100644 --- a/src/docs/readme-updater-plugin.js +++ b/src/docs/readme-updater-plugin.js @@ -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