diff --git a/composer.json b/composer.json index ee5f0e3..d236fd3 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ ], "homepage": "https://github.com/YouweGit/coding-standard-magento2", "require": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.2", "magento/magento-coding-standard": "*", "youwe/coding-standard": "^3.5.0" }, @@ -19,15 +20,10 @@ "YouweMagento2": "src/YouweMagento2" } }, - "scripts": { - "post-install-cmd": [ - "@phpcs-set-paths" - ], - "post-update-cmd": [ - "@phpcs-set-paths" - ], - "phpcs-set-paths": [ - "vendor/bin/phpcs --config-set installed_paths ../../youwe/coding-standard/src/,../../youwe/coding-standard-magento2/src/,../../magento/magento-coding-standard/,../../phpcompatibility/php-compatibility/" - ] + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + }, + "sort-packages": true } }