Prevent execution of certain drush commands when project uses composer for dependency management
-
Require
composer/installers
composer global require composer/installers
-
Configure the installer path for drush plugins in
~/.composer/composer.json
{ "extra": { "installer-paths": { "../.drush/plugins/{$name}": ["type:drupal-drush"] } } }
-
Require
gapple/drush-composercheck
composer global require gapple/drush-composercheck
- Download the release package
- Unzip the package to
~/.drush/
-
Require
composer/installers
in your projectcomposer require composer/installers
-
Configure the installer path for drush plugins in your project's
composer.json
{ "extra": { "installer-paths": { "drush/contrib/{$name}": ["type:drupal-drush"] } } }
-
Require
gapple/drush-composercheck
in your projectcomposer require gapple/drush-composercheck
- Download the release package
- Unzip the package to the
drush
folder within your project