composer is ignoring installer-paths configuration

后端 未结 4 1669
梦谈多话
梦谈多话 2021-02-06 05:29

I\'m try using CakePHP for the first time with composer, but I have some problems.

I have this composer.json:

{
  \"name\": \"example.com.br         


        
4条回答
  •  温柔的废话
    2021-02-06 05:38

    Of course, what Danack has said is true: the composer-installers plugin only supports a select list of package types.

    In response to that, I have written an extension for the composer-installers plugin which allows any arbitrary package type to be handled by the "installer-paths" directive.

    Simply require oomphinc/composer-installers-extender in your composer.json and add support for any additional arbitrary package types:

    "extra": {
      "installer-types": ["library"],
      "installer-paths": {
        "special/package/": ["my/package"],
        "path/to/libraries/{$name}/": ["type:library"]
      }
    }
    

    For packages that don't specify a type, use the default type library.

提交回复
热议问题