How to install require-dev
dependencies together with composer require package-name
?
#11451
-
I need to install packages from the list of
But it installs only packages, listed in the And I can't find any key to enable this in the documentation. So, is there any way to automate installing of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Do you have COMPOSER_NO_DEV env var set? Otherwise by default it should always install require-dev. Oh or maybe it's a misunderstanding.. Composer installs your project's require-dev always, but never your dependencies require-dev section, as those are only useful when developing the package in question, not when using the package as a dependency. That's the whole point of splitting things up in require-dev. |
Beta Was this translation helpful? Give feedback.
-
I don't think this is a just a Drupal issue. |
Beta Was this translation helpful? Give feedback.
Yeah I guess this is a side-effect of Drupal's historical baggage and the fact that (AFAIK) it cannot easily run from the vendor dir, so you need to install your project inside a drupal project to be able to test it, etc.. More modern projects typically do not have this limitation and then everything works more easily.
Anyway there is no way we can allow this IMO as it would lead to way too many conflicts.