Repository navigation
Conversation
The Plone registry Vite plugin generates .plone/registry.appInfo.js with the name and version of the app and of its add-ons, in add-on order, and aliases @plone/registry/app-info to it. It has no file system paths, so client code can import it. Outside of a Vite app it resolves to an empty fallback in virtual/. The site overview reads the app version from it instead of importing the Aurora app's package.json from cmsui. Assisted-by: Claude Opus 5.5
Documentation build overview
|
This was referenced Nov 7, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
@plone/registry/app-info, a virtual module like@plone/registry/blocks-docsand@plone/registry/plate-editor. Its default export is the name and version of the app (from itspackage.json) and of each of its add-ons, in add-on order:.plone/registry.appInfo.jsand aliases the import to it. It holds only names and versions, never file system paths, so client code can import it.virtual/app-info.jsis the empty fallback for unit tests, Storybook and type checks, followingvirtual/README.md.apps/aurora/package.jsonfrom cmsui, which only worked inside this monorepo.This is the base for #368: the installed add-ons list can be read from
appInfo.addonsinstead of theaddonsInfoexport of the add-ons loader, which carries the absolute paths of the machine that built the app.The
addonsInfoexport of the loader stays for now:apps/aurora/app/routes.ts(throughregistry.addonsInfo.json) and Volto still read it.Tested: registry and SiteOverview unit tests,
check:ts, and an Aurora build (the info lands only in the control panels chunk, with no local paths in the client bundle).Assisted-by: Claude Opus 5.5