Skip to content

Commit c2537bf

Browse files
committed
Execute commands for require-dev only when $COMPOSER_DEV_MODE = 1
1 parent ff8a294 commit c2537bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"@cs",
4747
"@fix"
4848
],
49-
"post-install-cmd": "cghooks add --ignore-lock",
50-
"post-update-cmd": "cghooks update"
49+
"post-install-cmd": "[[ \"$COMPOSER_DEV_MODE\" = 1 ]] && cghooks add --ignore-lock",
50+
"post-update-cmd": "[[ \"$COMPOSER_DEV_MODE\" = 1 ]] && cghooks update"
5151
},
5252
"extra": {
5353
"hooks": {

0 commit comments

Comments
 (0)