From b6df9b703ac5740ddc3803386331363f30b4fa20 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 6 Dec 2023 16:37:46 +0100 Subject: [PATCH] fix: Let git ignore composer dev dependencies Signed-off-by: Ferdinand Thiessen --- .gitignore | 1 + composer.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f56382cc7a255..c2210c1fa06db 100644 --- a/.gitignore +++ b/.gitignore @@ -162,6 +162,7 @@ tests/acceptance/vendor/ composer.phar /lib/composer/bin +/lib/composer/bamarni /vendor-bin/**/vendor ./.htaccess diff --git a/composer.json b/composer.json index dcbd908c02628..3082f5c7a4adc 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ } }, "autoload": { + "exclude-from-classmap": ["**/bamarni/composer-bin-plugin/**"], "files": [ "lib/public/Log/functions.php" ], @@ -48,11 +49,11 @@ "scripts": { "post-install-cmd": [ "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install", - "composer dump-autoload" + "composer dump-autoload --no-dev" ], "post-update-cmd": [ "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi", - "composer dump-autoload" + "composer dump-autoload --no-dev" ], "cs:fix": "php-cs-fixer fix", "cs:check": "php-cs-fixer fix --dry-run --diff",