From 36e79d3b34d192979b2f313d903bb7c8f66ea113 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Mon, 9 Dec 2024 18:40:23 -0500 Subject: [PATCH] devops: git hooks locked to dev environment installs (#911) --- composer.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 3b5e712b..3f839603 100644 --- a/composer.json +++ b/composer.json @@ -81,14 +81,17 @@ "@php bin/strauss.phar", "composer dump-autoload --optimize" ], - "cghooks": "vendor/bin/cghooks", + "cghooks": [ + "echo 'Installing git hooks'", + "vendor/bin/cghooks" + ], "post-install-cmd": [ "@strauss", - "@cghooks add -i" + "[ $COMPOSER_DEV_MODE -eq 0 ] || composer cghooks add -i" ], "post-update-cmd": [ "@strauss", - "@cghooks update" + "[ $COMPOSER_DEV_MODE -eq 0 ] || composer cghooks update" ] }, "support": {