A
A
alex4answ2020-04-08 07:52:26
Composer
alex4answ, 2020-04-08 07:52:26

How to upload packages to different directories depending on Type?

I make a "module manager", each module is a separate composer package, in its composer.json: How to change the download directory for this type? So that packages with type "my-package-type" are loaded not in vendor, but in modules for example ? I need it to display a list of all available modules, that is, roughly speaking: Everything in the "modules" folder is modules, and I can work with them. Solution 2: How to find (without enumeration and checking the type - of each package) in the vendor directory all packages with my type ?
"type": "my-package-type"



Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex4answ, 2020-04-09
@alex4answ

In general, we clone Composer / Installers and rewrite Installer as needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question