M
M
Michael2017-02-06 17:32:19
Magento
Michael, 2017-02-06 17:32:19

How to add sources to composer.json?

The project has a source setting for packages:

"repositories": [
    {
        "type": "composer",
        "url": "https://repo.magento.com/"
    }
],

Therefore, now packages can only be installed from "repo".
How to add your package (without removing the current source) from https://packagist.org/ ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2017-02-06
@springimport

As expected, you just need to add another resource.

"repositories": [
    {
        "type": "composer",
        "url": "https://repo.magento.com/"
    },
    {
        "type": "composer",
        "url": "https://packagist.org/"
    }
],

Hint .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question