Loading
refactor: #3618246 Move vardot/varbase-patches out of the recipe composer.json to the wiring script only
Related issue: #3618246
What
Move vardot/varbase-patches out of the recipe's own composer.json and into the Drupal CMS wiring so it is added at the project level instead of being a dependency of the recipe.
Why
A drupal-recipe should not depend on a Composer plugin. On a Varbase 11 base the plugin is already present; on a plain Drupal CMS base the wiring script is what has to provide the patch tooling. Declaring the plugin in the recipe's require couples the recipe to it unnecessarily.
How
composer.json: drop thevardot/varbase-patchesline fromrequire(35 requirements remain).scripts/assets/drupal-cms.composer.json: add a top-levelrequireblock withvardot/varbase-patchesso the wiring script writes it into the project-rootcomposer.json(alongside the existingallow-pluginsandcomposer-patcheswiring).scripts/README.md: document that the plugin is now added by the wiring at project level, not declared in the recipe.
AI-Generated: Yes
Checkpoints:
- File an issue
- Addition/Change/Update/Fix
- Testing to ensure no regression
- Automated unit testing coverage
- Automated functional testing coverage
- UX/UI designer responsibilities
- Readability
- Accessibility
- Performance
- Security
- Developer Documentation
- User Guide Documentation
- Reviewed by human
- Code review by maintainers
- Full testing and approval
- Credit contributors
- Review with the product owner
- Release notes snippet
- Release
Edited by Rajab Natshah