From 29e0bebc73a56d8f5fea98c83424e24e04abde95 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 23 Jan 2021 13:27:20 -0800 Subject: [PATCH] Allow composer to run in local environments even without DB --- .php_cs => .php_cs.dist | 0 composer.json | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename .php_cs => .php_cs.dist (100%) diff --git a/.php_cs b/.php_cs.dist similarity index 100% rename from .php_cs rename to .php_cs.dist diff --git a/composer.json b/composer.json index 987d7d05d..d8e88ef3f 100644 --- a/composer.json +++ b/composer.json @@ -68,6 +68,7 @@ } }, "scripts": { + "php-cs-fixer": "php-cs-fixer fix --diff --diff-format=udiff --config=./.php_cs.dist", "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], @@ -76,7 +77,7 @@ ], "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", - "@php artisan package:discover" + "@php artisan package:discover || true" ] }, "prefer-stable": true,