From 460078c36123bc4d30e607703057b614b9a79846 Mon Sep 17 00:00:00 2001 From: Justin Frydman Date: Wed, 11 Dec 2024 14:35:27 -0700 Subject: [PATCH] Add strauss permissions fix --- composer.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 373ea59700..ba864b9ca0 100644 --- a/composer.json +++ b/composer.json @@ -44,17 +44,23 @@ "scripts": { "test": "./vendor/bin/phpunit --colors --stop-on-failure", "unreleased": "./vendor/bin/since-unreleased.sh", + "fix-strauss-permissions": [ + "find vendor -type d -exec chmod 0755 {} \\;" + ], "strauss": [ "bin/strauss-installar.sh", "vendor/stellarwp/validation/bin/set-domain domain=give", - "@php bin/strauss.phar" + "@php bin/strauss.phar", + "@composer dump-autoload" ], "post-install-cmd": [ "@strauss", - "@php -r \"file_exists('tests/wp-tests-config.php') || copy('tests/wp-tests-config.dist.php', 'tests/wp-tests-config.php');\"" + "@php -r \"file_exists('tests/wp-tests-config.php') || copy('tests/wp-tests-config.dist.php', 'tests/wp-tests-config.php');\"", + "@fix-strauss-permissions" ], "post-update-cmd": [ - "@strauss" + "@strauss", + "@fix-strauss-permissions" ], "bundle": [ "@copy-fonts",