Cleanup unnecessary files when running composer in D8 conext
CiviCRM's composer.json
delegates to a post-install script to remove unnecessary and potentially dangerous files (e.g. demo scripts that shouldn't in the public web root). When adding civicrm to composer in Drupal 8, the post-install scripts do not run automatically (ie composer.json
does not recursively invoke post-install scripts). Therefore, we may be left dangerous content.