[TASK] Extract cli binary into separate package 35/53635/2
authorHelmut Hummel <typo3@helhum.io>
Tue, 25 Jul 2017 17:37:43 +0000 (19:37 +0200)
committerHelmut Hummel <typo3@helhum.io>
Mon, 31 Jul 2017 20:36:43 +0000 (22:36 +0200)
Remove the bin definition in typo3/cms composer.json
And require the package with the binary instead.

Composer command: composer req typo3/cms-cli

Resolves: #81980
Releases: master, 8.7
Change-Id: I504cbd08dd8d57e2b66d974d9f11150c38ab49c8
Reviewed-on: https://review.typo3.org/53635
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
composer.json
composer.lock
typo3/sysext/core/composer.json

index b65c830..a3c89b3 100644 (file)
@@ -27,9 +27,6 @@
                "optimize-autoloader": true,
                "bin-dir": "bin"
        },
-       "bin": [
-               "typo3/sysext/core/bin/typo3"
-       ],
        "require": {
                "php": "^7.0",
                "ext-json": "*",
@@ -43,6 +40,7 @@
                "symfony/yaml": "^2.7 || ^3.0",
                "symfony/polyfill-mbstring": "^1.2",
                "doctrine/instantiator": "~1.0.4",
+               "typo3/cms-cli": "^1.0",
                "typo3/class-alias-loader": "^1.0",
                "typo3/cms-composer-installers": "^1.2.8",
                "psr/http-message": "~1.0",
index 762293f..3d72277 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "content-hash": "c215c9d579d2c5d3c779af95fd5201e5",
+    "content-hash": "41527dc05125efdd17f5861703184893",
     "packages": [
         {
             "name": "cogpowered/finediff",
             "time": "2015-10-06T10:25:44+00:00"
         },
         {
+            "name": "typo3/cms-cli",
+            "version": "1.0.1",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/TYPO3/cms-cli.git",
+                "reference": "713666d40ee56c1a362d1ce7c3f929613fc033b9"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/TYPO3/cms-cli/zipball/713666d40ee56c1a362d1ce7c3f929613fc033b9",
+                "reference": "713666d40ee56c1a362d1ce7c3f929613fc033b9",
+                "shasum": ""
+            },
+            "require": {
+                "php": "^7.0",
+                "typo3/cms-core": "^8.7 || ^9.0@dev"
+            },
+            "bin": [
+                "typo3"
+            ],
+            "type": "library",
+            "autoload": {
+                "psr-4": {
+                    "TYPO3\\CMS\\Cli\\": "src"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "GPL-2.0+"
+            ],
+            "description": "TYPO3 command line binary",
+            "homepage": "https://typo3.org",
+            "time": "2017-07-28T09:15:35+00:00"
+        },
+        {
             "name": "typo3/cms-composer-installers",
             "version": "1.3.1",
             "source": {
index 29f2e62..b19ce32 100644 (file)
@@ -6,7 +6,8 @@
        "license": ["GPL-2.0+"],
 
        "require": {
-               "php" : "^7.0"
+               "php" : "^7.0",
+               "typo3/cms-cli": "^1.0"
        },
        "conflict": {
                "typo3/cms": "*"
@@ -14,9 +15,6 @@
        "replace": {
                "core": "*"
        },
-       "bin": [
-               "bin/typo3"
-       ],
        "extra": {
                "typo3/cms": {
                        "Package": {