Using the composer merge plugin to download libraries with Composer 2.x
Last updated on
1 July 2023
@see https://github.com/wikimedia/composer-merge-plugin/issues/184
To support the composer merge plugin with Composer 2.x, use the below code...
"require": {
....
"wikimedia/composer-merge-plugin": "dev-feature/composer-v2"
},
...
"extra": {
"merge-plugin": {
"include": [
"www/modules/contrib/webform/composer.libraries.json",
"www/modules/custom/*/composer.json",
"www/profiles/custom/*/composer.json",
"www/themes/custom/*/composer.json"
],
"merge-extra": true,
"merge-extra-deep": true,
"merge-scripts": true
},
}
...
"repositories": {
"asset-packagist": {
"type": "composer",
"url": "https://asset-packagist.org"
},
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
},
"composer-merge-plugin-composer2": {
"type": "vcs",
"url": "https://github.com/mcaskill/composer-merge-plugin"
}
},
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion