diff --git a/composer.json b/composer.json index f2c822562..0a95bddad 100644 --- a/composer.json +++ b/composer.json @@ -84,6 +84,14 @@ } }, "scripts": { - "post-install-cmd": "php -r \"file_exists('.env.example') && !file_exists('.env') || copy('.env.example','.env');\"" + "post-package-update": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ] } }