Skip to content

Commit

Permalink
Fixes #1292: composer merge + composer patches not playing nicely. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Apr 3, 2017
1 parent 19c112e commit 10109d4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
23 changes: 12 additions & 11 deletions blt-project/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
"acquia/blt": "*@dev"
},
"extra": {
"enable-patching": true,
"installer-paths": {
"docroot/core": ["type:drupal-core"],
"docroot/modules/contrib/{$name}": ["type:drupal-module"],
"docroot/modules/custom/{$name}": ["type:drupal-custom-module"],
"docroot/profiles/contrib/{$name}": ["type:drupal-profile"],
"docroot/profiles/custom/{$name}": ["type:drupal-custom-profile"],
"docroot/themes/contrib/{$name}": ["type:drupal-theme"],
"docroot/themes/custom/{$name}": ["type:drupal-custom-theme"],
"docroot/libraries/{$name}": ["type:drupal-library"],
"drush/contrib/{$name}": ["type:drupal-drush"]
},
"merge-plugin": {
"require": [
"vendor/acquia/blt/composer.required.json",
Expand All @@ -37,17 +49,6 @@
"merge-extra-deep": true,
"merge-scripts": true,
"replace": true
},
"installer-paths": {
"docroot/core": ["type:drupal-core"],
"docroot/modules/contrib/{$name}": ["type:drupal-module"],
"docroot/modules/custom/{$name}": ["type:drupal-custom-module"],
"docroot/profiles/contrib/{$name}": ["type:drupal-profile"],
"docroot/profiles/custom/{$name}": ["type:drupal-custom-profile"],
"docroot/themes/contrib/{$name}": ["type:drupal-theme"],
"docroot/themes/custom/{$name}": ["type:drupal-custom-theme"],
"docroot/libraries/{$name}": ["type:drupal-library"],
"drush/contrib/{$name}": ["type:drupal-drush"]
}
},
"minimum-stability": "dev",
Expand Down
23 changes: 12 additions & 11 deletions template/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
"require": {},
"require-dev": {},
"extra": {
"enable-patching": true,
"installer-paths": {
"docroot/core": ["type:drupal-core"],
"docroot/modules/contrib/{$name}": ["type:drupal-module"],
"docroot/modules/custom/{$name}": ["type:drupal-custom-module"],
"docroot/profiles/contrib/{$name}": ["type:drupal-profile"],
"docroot/profiles/custom/{$name}": ["type:drupal-custom-profile"],
"docroot/themes/contrib/{$name}": ["type:drupal-theme"],
"docroot/themes/custom/{$name}": ["type:drupal-custom-theme"],
"docroot/libraries/{$name}": ["type:drupal-library"],
"drush/contrib/{$name}": ["type:drupal-drush"]
},
"merge-plugin": {
"require": [
"vendor/acquia/blt/composer.required.json",
Expand All @@ -22,17 +34,6 @@
"merge-extra-deep": true,
"merge-scripts": true,
"replace": true
},
"installer-paths": {
"docroot/core": ["type:drupal-core"],
"docroot/modules/contrib/{$name}": ["type:drupal-module"],
"docroot/modules/custom/{$name}": ["type:drupal-custom-module"],
"docroot/profiles/contrib/{$name}": ["type:drupal-profile"],
"docroot/profiles/custom/{$name}": ["type:drupal-custom-profile"],
"docroot/themes/contrib/{$name}": ["type:drupal-theme"],
"docroot/themes/custom/{$name}": ["type:drupal-custom-theme"],
"docroot/libraries/{$name}": ["type:drupal-library"],
"drush/contrib/{$name}": ["type:drupal-drush"]
}
},
"minimum-stability": "dev",
Expand Down

0 comments on commit 10109d4

Please sign in to comment.