Skip to content

Commit

Permalink
fix(chosen): use installer-plugin to place chosenJS
Browse files Browse the repository at this point in the history
In order for chosen to work in Drupal, it must reside in
./web/libraries/chosen.  This allows composer to utilize the
installer-paths to accomplish this.

Co-authoried-by: @vinmassaro
  • Loading branch information
dblanken-yale committed Aug 8, 2023
1 parent 340d706 commit 2aef510
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"drupal/core-composer-scaffold": "^9.2",
"drupal/core-recommended": "^9.2",
"drush/drush": "^11 || ^12",
"oomphinc/composer-installers-extender": "^2.0",
"pantheon-systems/drupal-integrations": "^9",
"yalesites-org/yalesites_profile": "*"
},
Expand Down Expand Up @@ -57,6 +58,7 @@
"[project-root]/.gitattributes": false
}
},
"installer-types": ["npm-asset"],
"installer-paths": {
"web/core": [
"type:drupal-core"
Expand Down Expand Up @@ -87,6 +89,9 @@
],
"web/private/scripts/quicksilver/{$name}/": [
"type:quicksilver-script"
],
"web/libraries/chosen": [
"jjj/chosen"
]
},
"enable-patching": true,
Expand All @@ -106,7 +111,8 @@
"composer/installers": true,
"cweagans/composer-patches": true,
"drupal/core-composer-scaffold": true,
"drupal/console-extend-plugin": true
"drupal/console-extend-plugin": true,
"oomphinc/composer-installers-extender": true
}
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions web/profiles/custom/yalesites_profile/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"drupal/upgrade_status": "^3.18",
"drupal/webform": "^6.2@beta",
"drupal/wingsuit_companion": "^2.0@RC",
"jjj/chosen": "^2.2",
"yalesites-org/atomic": "1.17.0",
"yalesites-org/yale_cas": "^1.0"
},
Expand Down

0 comments on commit 2aef510

Please sign in to comment.