diff --git a/composer.json b/composer.json index 320cb7639..e8c1271b3 100644 --- a/composer.json +++ b/composer.json @@ -174,10 +174,12 @@ "phpcbf": "phpcbf -p", "tw": "@test:watch", "twg": "@test:watch:group", - "post-update-cmd": [ + "cleanup": [ "[ $COMPOSER_DEV_MODE -eq 0 ] || rm -rf public_html/wp-content/mu-plugins-private/wporg-mu-plugins/pub-sync/*", "[ $COMPOSER_DEV_MODE -eq 0 ] || mv public_html/wp-content/mu-plugins-private/wporg-mu-plugins/tmp/mu-plugins/* public_html/wp-content/mu-plugins-private/wporg-mu-plugins/pub-sync", "[ $COMPOSER_DEV_MODE -eq 0 ] || rm -rf public_html/wp-content/mu-plugins-private/wporg-mu-plugins/tmp/" - ] + ], + "post-update-cmd": "@cleanup", + "post-install-cmd": "@cleanup" } }