Skip to content

Commit 3fac658

Browse files
authored
Merge branch 'develop' into pre-release
2 parents 8e30d5a + fa3ea5c commit 3fac658

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ Due to security, when installed this way the Magento standard for phpcs cannot b
1111
You can achieve this by adding the following to your project's `composer.json`:
1212
````
1313
"scripts": {
14-
"post-install-cmd": "vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/",
15-
"post-update-cmd": "vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/"
14+
"post-install-cmd": [
15+
"[ $COMPOSER_DEV_MODE -eq 1 ] && vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/"
16+
],
17+
"post-update-cmd": [
18+
"[ $COMPOSER_DEV_MODE -eq 1 ] && vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/"
19+
]
1620
}
1721
````
1822

0 commit comments

Comments
 (0)