From 2d44bd104b76f8b42384f3753a067d32d8ba8fad Mon Sep 17 00:00:00 2001 From: Justin Vogt Date: Fri, 20 Dec 2024 21:17:17 +0100 Subject: [PATCH] Update composer.json --- composer.json | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index ee7b55d..4186110 100644 --- a/composer.json +++ b/composer.json @@ -35,15 +35,16 @@ "post-create-project-cmd": [ "composer exec -- wp setup" ], - "strauss": [ - "test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/latest/download/strauss.phar", - "@php bin/strauss.phar" + "prefix-namespaces": [ + "sh -c 'test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/latest/download/strauss.phar'", + "@php bin/strauss.phar", + "@php composer dump-autoload" ], "post-install-cmd": [ - "@strauss" + "@prefix-namespaces" ], "post-update-cmd": [ - "@strauss" + "@prefix-namespaces" ], "phpstan": "@php ./vendor/bin/phpstan analyse", "phpstan:ci": "@php ./vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr",