Commit ca6a2dc0 authored by Christian Kuhn's avatar Christian Kuhn Committed by Georg Ringer
Browse files

[TASK] Avoid root-only fields in extensions composer.json

composer.json fields marked as root-only in
https://getcomposer.org/doc/04-schema.md are only
used if the composer.json is used as project root.

Core extensions and split repositories are never used
as project root directly and also won't work as such.
Testing is always performed on the monorepo.

All root-only fields are thus obsolete in extensions
composer.json, namely: require-dev, autoload-dev,
minimum-stability, prefer-stable, repositories,
config, scripts.

sortpackages: true in config field is kept since
this is useful when updating packages using
componer req something -d typo3/sysext/core_ext

Resolves: #94747
Releases: master
Change-Id: I9712703c35ef3d00c098bc58218032d1e19306d4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70288


Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent 173dd9a9
......@@ -47,10 +47,5 @@
"psr-4": {
"TYPO3\\CMS\\Adminpanel\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Adminpanel\\Tests\\": "Tests/"
}
}
}
......@@ -55,10 +55,5 @@
"psr-4": {
"TYPO3\\CMS\\Backend\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Backend\\Tests\\": "Tests/"
}
}
}
......@@ -39,10 +39,5 @@
"psr-4": {
"TYPO3\\CMS\\Belog\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Belog\\Tests\\": "Tests/"
}
}
}
......@@ -39,10 +39,5 @@
"psr-4": {
"TYPO3\\CMS\\Beuser\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Beuser\\Tests\\": "Tests/"
}
}
}
......@@ -70,22 +70,6 @@
"typo3/symfony-psr-event-dispatcher-adapter": "^1.0 || ^2.0",
"typo3fluid/fluid": "^2.7.0"
},
"require-dev": {
"codeception/codeception": "^4.1.21",
"codeception/lib-asserts": "^1.13.2",
"codeception/module-asserts": "^1.3.1",
"codeception/module-filesystem": "^1.0.3",
"codeception/module-webdriver": "^1.2.1",
"composer/package-versions-deprecated": "^1.11.99.2",
"friendsofphp/php-cs-fixer": "^2.19 || ^3.0",
"php-webdriver/webdriver": "^1.11.1",
"phpspec/prophecy": "^1.12.2",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^0.12.64",
"phpunit/phpunit": "^9.5",
"typo3/cms-styleguide": "~11.4.0",
"typo3/testing-framework": "^6.9.0"
},
"suggest": {
"ext-fileinfo": "Used for proper file type detection in the file abstraction layer",
"ext-gd": "GDlib/Freetype is required for building images with text (GIFBUILDER) and can also be used to scale images",
......@@ -128,14 +112,5 @@
},
"classmap": ["Resources/PHP/"],
"files": ["Resources/PHP/GlobalDebugFunctions.php"]
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Core\\Tests\\": "Tests/"
},
"classmap": [
"Tests/Unit/Core/Fixtures/test_extension/",
"Tests/Functional/Fixtures/"
]
}
}
......@@ -44,10 +44,5 @@
"psr-4": {
"TYPO3\\CMS\\Dashboard\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Dashboard\\Tests\\": "Tests/"
}
}
}
......@@ -50,18 +50,5 @@
"psr-4": {
"TYPO3\\CMS\\Extbase\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Extbase\\Tests\\": "Tests/"
},
"classmap": [
"Tests/Unit/Object/Container/Fixtures/",
"Tests/Functional/Fixtures/",
"Tests/Functional/Mvc/Controller/Fixture/"
],
"files": [
"Tests/Fixture/TxClassWithGettersAndSetters.php"
]
}
}
......@@ -42,10 +42,5 @@
"psr-4": {
"TYPO3\\CMS\\Extensionmanager\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Extensionmanager\\Tests\\": "Tests/"
}
}
}
......@@ -39,10 +39,5 @@
"psr-4": {
"TYPO3\\CMS\\FrontendLogin\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\FrontendLogin\\Tests\\": "Tests/"
}
}
}
......@@ -36,10 +36,5 @@
},
"extension-key": "filelist"
}
},
"autoload": {
"psr-4": {
"TYPO3\\CMS\\Filelist\\": "Classes/"
}
}
}
......@@ -31,10 +31,5 @@
"typo3/cms": {
"extension-key": "filemetadata"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Filemetadata\\Tests\\": "Tests/"
}
}
}
......@@ -17,35 +17,15 @@
}
],
"license": "GPL-2.0+",
"repositories": [
{"type": "vcs", "url": "/Users/helmut/Developer/TYPO3/master"}
],
"autoload": {
"psr-4": {
"TYPO3Fluid\\FluidTest\\": "Classes"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3Fluid\\FluidTest\\Tests\\": "Tests",
"TYPO3\\CMS\\Core\\Tests\\": ".Build/vendor/typo3/cms/typo3/sysext/core/Tests/",
"TYPO3\\CMS\\Fluid\\Tests\\": ".Build/vendor/typo3/cms/typo3/sysext/fluid/Tests/"
}
},
"replace": {
"fluid_test": "self.version",
"typo3-ter/ext-scaffold": "self.version"
},
"config": {
"vendor-dir": ".Build/vendor",
"bin-dir": ".Build/bin"
},
"scripts": {
"post-autoload-dump": [
"mkdir -p .Build/Web/typo3conf/ext/",
"[ -L .Build/Web/typo3conf/ext/fluid_test ] || ln -snvf ../../../../. .Build/Web/typo3conf/ext/fluid_test"
]
},
"extra": {
"branch-alias": {
"dev-master": "11.4.x-dev"
......
......@@ -45,13 +45,5 @@
"psr-4": {
"TYPO3\\CMS\\Fluid\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Fluid\\Tests\\": "Tests/"
},
"classmap": [
"Tests/Functional/Fixtures/Extensions/fluid_test/Classes/"
]
}
}
......@@ -41,10 +41,5 @@
"psr-4": {
"TYPO3\\CMS\\FluidStyledContent\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\FluidStyledContent\\Tests\\": "Tests/"
}
}
}
......@@ -45,10 +45,5 @@
"psr-4": {
"TYPO3\\CMS\\Form\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Form\\Tests\\": "Tests/"
}
}
}
......@@ -46,10 +46,5 @@
"psr-4": {
"TYPO3\\CMS\\Frontend\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Frontend\\Tests\\": "Tests/"
}
}
}
......@@ -39,10 +39,5 @@
"psr-4": {
"TYPO3\\CMS\\Impexp\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Impexp\\Tests\\": "Tests/"
}
}
}
......@@ -39,10 +39,5 @@
"psr-4": {
"TYPO3\\CMS\\IndexedSearch\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\IndexedSearch\\Tests\\": "Tests/"
}
}
}
......@@ -47,10 +47,5 @@
"psr-4": {
"TYPO3\\CMS\\Install\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Install\\Tests\\": "Tests/"
}
}
}
......@@ -40,10 +40,5 @@
"psr-4": {
"TYPO3\\CMS\\Linkvalidator\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Linkvalidator\\Tests\\": "Tests/"
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment