Composer不会安装到installer-path

时间:2016-08-18 19:18:28

标签: php composer-php

我正在尝试让作曲家使用extra / installer-paths

将一些包安装到给定目录

问题是未安装包中的文件。只创建目录。

EG。创建了wp-content / plugins / johndoe / vendor / {$ vendor} / {$ name},但文件安装在vendor / {$ vendor} / {$ name}

提前感谢您的任何指示和建议!

示例composer.json

   {
    "name": "john/doe",
    "type": "project",
    "authors": [
        {
            "name": "John Doe",
            "email": "john@doe.com"
        }
    ],

    "repositories": [
        {
            "type": "composer",
            "url": "https://wpackagist.org"
        },
        {
            "type": "vcs",
            "url": "git@bitbucket.org:baz/egg-pack.git"
        },
        {
            "type": "vcs",
            "url": "git@github.com:johndoe/package.git"
        }
    ],
    "minimum-stability": "dev",
    "prefer-stable": true,
    "require": {
        "composer/installers": "^1.0",
        "oomphinc/composer-installers-extender": "^1.1",
        "johndoe/package": "1.0.0-beta.0"
    },
    "extra": {
        "installer-types": ["library"],
        "installer-paths": {
            "wp-content/plugins/johndoe/vendor/{$vendor}/{$name}": [
                "baz/egg-pack",
                "myokyawhtun/pdfmerger"
            ]
        }
    }
}

0 个答案:

没有答案