|
1 | 1 | {
|
2 | 2 | "name": "drupal-composer/drupal-project",
|
3 | 3 | "description": "Project template for Drupal 10 projects with Composer",
|
4 |
| - "type": "project", |
5 | 4 | "license": "GPL-2.0-or-later",
|
| 5 | + "type": "project", |
6 | 6 | "authors": [
|
7 | 7 | {
|
8 | 8 | "name": "",
|
9 | 9 | "role": ""
|
10 | 10 | }
|
11 | 11 | ],
|
12 |
| - "repositories": [ |
13 |
| - { |
14 |
| - "type": "composer", |
15 |
| - "url": "https://packages.drupal.org/8" |
16 |
| - } |
17 |
| - ], |
18 | 12 | "require": {
|
19 | 13 | "composer/installers": "^2.1",
|
20 | 14 | "cweagans/composer-patches": "^1.7",
|
|
25 | 19 | "webflo/drupal-finder": "^1.2"
|
26 | 20 | },
|
27 | 21 | "require-dev": {
|
28 |
| - "drupal/core-dev": "^10.2.0" |
| 22 | + "drupal/core-dev": "^10.2.0", |
| 23 | + "ergebnis/composer-normalize": "^2.42" |
29 | 24 | },
|
30 | 25 | "conflict": {
|
31 | 26 | "drupal/drupal": "*"
|
32 | 27 | },
|
| 28 | + "repositories": [ |
| 29 | + { |
| 30 | + "type": "composer", |
| 31 | + "url": "https://packages.drupal.org/8" |
| 32 | + } |
| 33 | + ], |
33 | 34 | "minimum-stability": "dev",
|
34 | 35 | "prefer-stable": true,
|
| 36 | + "autoload": { |
| 37 | + "classmap": [ |
| 38 | + "scripts/composer/ScriptHandler.php" |
| 39 | + ], |
| 40 | + "files": [ |
| 41 | + "load.environment.php" |
| 42 | + ] |
| 43 | + }, |
35 | 44 | "config": {
|
36 |
| - "discard-changes": true, |
37 |
| - "sort-packages": true, |
38 | 45 | "allow-plugins": {
|
39 | 46 | "composer/installers": true,
|
40 | 47 | "cweagans/composer-patches": true,
|
41 |
| - "drupal/core-composer-scaffold": true, |
42 | 48 | "dealerdirect/phpcodesniffer-composer-installer": true,
|
| 49 | + "drupal/core-composer-scaffold": true, |
| 50 | + "ergebnis/composer-normalize": true, |
43 | 51 | "php-http/discovery": true,
|
44 | 52 | "phpstan/extension-installer": true
|
45 |
| - } |
46 |
| - }, |
47 |
| - "autoload": { |
48 |
| - "classmap": [ |
49 |
| - "scripts/composer/ScriptHandler.php" |
50 |
| - ], |
51 |
| - "files": ["load.environment.php"] |
52 |
| - }, |
53 |
| - "scripts": { |
54 |
| - "pre-install-cmd": [ |
55 |
| - "DrupalProject\\composer\\ScriptHandler::checkComposerVersion" |
56 |
| - ], |
57 |
| - "pre-update-cmd": [ |
58 |
| - "DrupalProject\\composer\\ScriptHandler::checkComposerVersion" |
59 |
| - ], |
60 |
| - "post-install-cmd": [ |
61 |
| - "DrupalProject\\composer\\ScriptHandler::createRequiredFiles" |
62 |
| - ], |
63 |
| - "post-update-cmd": [ |
64 |
| - "DrupalProject\\composer\\ScriptHandler::createRequiredFiles" |
65 |
| - ] |
| 53 | + }, |
| 54 | + "discard-changes": true, |
| 55 | + "sort-packages": true |
66 | 56 | },
|
67 | 57 | "extra": {
|
| 58 | + "composer-exit-on-patch-failure": true, |
68 | 59 | "drupal-scaffold": {
|
69 | 60 | "locations": {
|
70 | 61 | "web-root": "web/"
|
71 | 62 | }
|
72 | 63 | },
|
73 | 64 | "installer-paths": {
|
74 |
| - "web/core": ["type:drupal-core"], |
75 |
| - "web/libraries/{$name}": ["type:drupal-library"], |
76 |
| - "web/modules/contrib/{$name}": ["type:drupal-module"], |
77 |
| - "web/profiles/contrib/{$name}": ["type:drupal-profile"], |
78 |
| - "web/themes/contrib/{$name}": ["type:drupal-theme"], |
79 |
| - "drush/Commands/contrib/{$name}": ["type:drupal-drush"] |
| 65 | + "web/core": [ |
| 66 | + "type:drupal-core" |
| 67 | + ], |
| 68 | + "web/libraries/{$name}": [ |
| 69 | + "type:drupal-library" |
| 70 | + ], |
| 71 | + "web/modules/contrib/{$name}": [ |
| 72 | + "type:drupal-module" |
| 73 | + ], |
| 74 | + "web/profiles/contrib/{$name}": [ |
| 75 | + "type:drupal-profile" |
| 76 | + ], |
| 77 | + "web/themes/contrib/{$name}": [ |
| 78 | + "type:drupal-theme" |
| 79 | + ], |
| 80 | + "drush/Commands/contrib/{$name}": [ |
| 81 | + "type:drupal-drush" |
| 82 | + ] |
80 | 83 | },
|
81 |
| - "composer-exit-on-patch-failure": true, |
82 | 84 | "patchLevel": {
|
83 | 85 | "drupal/core": "-p2"
|
84 | 86 | },
|
85 |
| - "patches": { |
86 |
| - } |
| 87 | + "patches": {} |
| 88 | + }, |
| 89 | + "scripts": { |
| 90 | + "pre-install-cmd": [ |
| 91 | + "DrupalProject\\composer\\ScriptHandler::checkComposerVersion" |
| 92 | + ], |
| 93 | + "post-install-cmd": [ |
| 94 | + "DrupalProject\\composer\\ScriptHandler::createRequiredFiles" |
| 95 | + ], |
| 96 | + "pre-update-cmd": [ |
| 97 | + "DrupalProject\\composer\\ScriptHandler::checkComposerVersion" |
| 98 | + ], |
| 99 | + "post-update-cmd": [ |
| 100 | + "DrupalProject\\composer\\ScriptHandler::createRequiredFiles" |
| 101 | + ] |
87 | 102 | }
|
88 | 103 | }
|
0 commit comments