Upgrade a distribution-based project#
Use this guide in projects based on a frontend distribution where frontend/Makefile provides an upgrade target.
Prerequisites#
repository.tomlcontains[frontend.package]with:base_packagepath
The add-on package at
pathdeclares the distribution package inpackage.json.frontend/scripts/upgrade-distribution.jsexists in the project.frontend/Makefilehas anupgradetarget that runs:
upgrade:
node scripts/upgrade-distribution.js
pnpm exec prettier --log-level silent --write volto.config.js
For setup details, see Configure a project based on a distribution to ensure versions are consistent with the distribution.
Upgrade steps#
From the project root, run:
make -C frontend upgrade
or
cd frontend make upgrade
Install and sync dependencies:
make frontend-installReview generated changes in:
frontend/volto.config.jsfrontend/mrs.developer.json
Run tests:
make test
What make upgrade updates#
Rewrites
frontend/volto.config.jsdistribution block with:distribution
namedistribution
versionresolved
volto_versiondistribution
dependencies
Preserves existing
addonsandthemeinvolto.config.js.Updates
frontend/mrs.developer.jsonwith the resolvedcore.tag(volto_version).