diff --git a/composer.json b/composer.json index 29b7066e6..da619746c 100644 --- a/composer.json +++ b/composer.json @@ -1,20 +1,14 @@ { "name": "drupal-composer/drupal-project", "description": "Project template for Drupal 11 projects with Composer", - "type": "project", "license": "GPL-2.0-or-later", + "type": "project", "authors": [ { "name": "", "role": "" } ], - "repositories": [ - { - "type": "composer", - "url": "https://packages.drupal.org/8" - } - ], "require": { "composer/installers": "^2.1", "cweagans/composer-patches": "^1.7", @@ -25,64 +19,85 @@ "webflo/drupal-finder": "^1.2" }, "require-dev": { - "drupal/core-dev": "^11@alpha" + "drupal/core-dev": "^11@alpha", + "ergebnis/composer-normalize": "^2.42" }, "conflict": { "drupal/drupal": "*" }, + "repositories": [ + { + "type": "composer", + "url": "https://packages.drupal.org/8" + } + ], "minimum-stability": "dev", "prefer-stable": true, + "autoload": { + "classmap": [ + "scripts/composer/ScriptHandler.php" + ], + "files": [ + "load.environment.php" + ] + }, "config": { - "discard-changes": true, - "sort-packages": true, "allow-plugins": { "composer/installers": true, "cweagans/composer-patches": true, - "drupal/core-composer-scaffold": true, "dealerdirect/phpcodesniffer-composer-installer": true, + "drupal/core-composer-scaffold": true, + "ergebnis/composer-normalize": true, "php-http/discovery": true, "phpstan/extension-installer": true - } - }, - "autoload": { - "classmap": [ - "scripts/composer/ScriptHandler.php" - ], - "files": ["load.environment.php"] - }, - "scripts": { - "pre-install-cmd": [ - "DrupalProject\\composer\\ScriptHandler::checkComposerVersion" - ], - "pre-update-cmd": [ - "DrupalProject\\composer\\ScriptHandler::checkComposerVersion" - ], - "post-install-cmd": [ - "DrupalProject\\composer\\ScriptHandler::createRequiredFiles" - ], - "post-update-cmd": [ - "DrupalProject\\composer\\ScriptHandler::createRequiredFiles" - ] + }, + "discard-changes": true, + "sort-packages": true }, "extra": { + "composer-exit-on-patch-failure": true, "drupal-scaffold": { "locations": { "web-root": "web/" } }, "installer-paths": { - "web/core": ["type:drupal-core"], - "web/libraries/{$name}": ["type:drupal-library"], - "web/modules/contrib/{$name}": ["type:drupal-module"], - "web/profiles/contrib/{$name}": ["type:drupal-profile"], - "web/themes/contrib/{$name}": ["type:drupal-theme"], - "drush/Commands/contrib/{$name}": ["type:drupal-drush"] + "web/core": [ + "type:drupal-core" + ], + "web/libraries/{$name}": [ + "type:drupal-library" + ], + "web/modules/contrib/{$name}": [ + "type:drupal-module" + ], + "web/profiles/contrib/{$name}": [ + "type:drupal-profile" + ], + "web/themes/contrib/{$name}": [ + "type:drupal-theme" + ], + "drush/Commands/contrib/{$name}": [ + "type:drupal-drush" + ] }, - "composer-exit-on-patch-failure": true, "patchLevel": { "drupal/core": "-p2" }, - "patches": { - } + "patches": {} + }, + "scripts": { + "pre-install-cmd": [ + "DrupalProject\\composer\\ScriptHandler::checkComposerVersion" + ], + "post-install-cmd": [ + "DrupalProject\\composer\\ScriptHandler::createRequiredFiles" + ], + "pre-update-cmd": [ + "DrupalProject\\composer\\ScriptHandler::checkComposerVersion" + ], + "post-update-cmd": [ + "DrupalProject\\composer\\ScriptHandler::createRequiredFiles" + ] } }