Skip to content

fix(api): register auto-installed plugins/templates (regression in 0.9.5) - #229

Merged
mgks merged 1 commit into
docmd-io:mainfrom
MSOB7YY:main
Sep 13, 2026
Merged

mgks merged 1 commit into
docmd-io:mainfrom
MSOB7YY:main

Conversation

@MSOB7YY

@MSOB7YY MSOB7YY commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Description

Since 0.9.5, plugins and templates that are auto-installed at build time
(e.g. theme.template: "summer" without @docmd/template-summer in
package.json) are downloaded but never registered. tryLoadAfterInstall
returns the module, but rawModule = reloaded; was dropped in 0.9.5, so
rawModule stays undefined and the loader hits if (!rawModule) continue;.
The build silently falls back to the default layout.

Repro: clean project, @docmd/[email protected], theme.template: "summer",
docmd build. Log shows "Runtime dep done: summer" but the output has no
assets/template/summer.css. Works on 0.9.4 and with the package
pre-installed.

Fixes # (issue)

Type of change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

disclaimer: fixed by claude

@mgks
mgks merged commit 79877bd into docmd-io:main Sep 13, 2026
mgks added a commit that referenced this pull request Sep 13, 2026
@mgks

mgks commented Sep 19, 2026

Copy link
Copy Markdown
Member

Thanks for catching this and fixing the broken link! Appreciate the contribution.

mgks added a commit that referenced this pull request Sep 22, 2026
mgks added a commit that referenced this pull request Sep 22, 2026
fix(api): register auto-installed plugins/templates (regression in 0.9.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants