[TASK] Extract cli binary into separate package 01/53601/5
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:31:59 +0000 (22:31 +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/53601
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
composer.json
composer.lock
typo3/sysext/core/composer.json

index 2897106..ba5e61f 100644 (file)
@@ -26,9 +26,6 @@
        "config": {
                "bin-dir": "bin"
        },
-       "bin": [
-               "typo3/sysext/core/bin/typo3"
-       ],
        "require": {
                "php": "^7.0",
                "ext-json": "*",
@@ -42,6 +39,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.4.0@rc",
                "psr/http-message": "~1.0",
index c24d42c..4ddc122 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": "cb6c37b20dd41e36057e0b54cbb338cb",
+    "content-hash": "98366fdfe4963beffbf64598a5cbe464",
     "packages": [
         {
             "name": "cogpowered/finediff",
             "time": "2015-10-06T10:25:44+00:00"
         },
         {
+            "name": "typo3/cms-cli",
+            "version": "1.0.0",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/TYPO3/cms-cli.git",
+                "reference": "b728de7e8b993745ff78bdd38634ed0c44706a28"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/TYPO3/cms-cli/zipball/b728de7e8b993745ff78bdd38634ed0c44706a28",
+                "reference": "b728de7e8b993745ff78bdd38634ed0c44706a28",
+                "shasum": ""
+            },
+            "require": {
+                "php": "^7.0",
+                "typo3/cms-core": "^8.7 || ^9.0"
+            },
+            "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-25T17:43:19+00:00"
+        },
+        {
             "name": "typo3/cms-composer-installers",
             "version": "1.4.0-rc1",
             "source": {
index ff13558..a5ecd23 100644 (file)
@@ -11,7 +11,8 @@
                }],
 
        "require": {
-               "php" : "^7.0"
+               "php" : "^7.0",
+               "typo3/cms-cli": "^1.0"
        },
        "conflict": {
                "typo3/cms": "*"
@@ -19,9 +20,6 @@
        "replace": {
                "core": "*"
        },
-       "bin": [
-               "bin/typo3"
-       ],
        "extra": {
                "branch-alias": {
                        "dev-master": "9.x-dev"