Command "composer civicrm: publish" is not executed automatically?
I was upgrading our drupal 8 and CiviCRM installation, as our vendor directory is outside the webroot, as a solution we ran a bash script via composer.json scripts to put all assets in the right place in the webroot.
I recently saw that "civicrm-asset-plugin" is available, while implementing this I saw that the command composer civicrm: publish
was not executed, so I have to run this manually after a composer install/update.
I solved this by adding this in our composer.json:
"scripts": {
"post-install-cmd": [
"@composer civicrm:publish"
],
"post-update-cmd": [
"@composer civicrm:publish"
]
}