and my source code is inside custom/plugins/PackageName
\nthere is a composer.json inside with dev dependencies.
\nnow i run
\ncomposer require vendorName/packageName -w
\nthe package from custom/plugins is now symlinked inside the main vendor but all the dev dependncies are not installed.
\ni tried to delete vendor folder and composer.lock and installed everything and its still does not work. the dev dependencies are inside the composer.lock but the actual dev dependencies are not installed in the main vendor folder
\niam using composer 2.8.6. maybe i have to configure something so that the dev dependencies are also installed?
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"This is expected. Dev requirements are only considered for the root package: https://getcomposer.org/doc/04-schema.md#require-dev
","upvoteCount":1,"url":"https://github.com/composer/composer/discussions/12340#discussioncomment-12548148"}}}-
|
Hi all, i have a shopware 6 project. it has configured repositories to the place where the plugins are located. now i want to install the plugin including dev dependencies. the plugin itsself is installed but without dev dependencies. so my main composer.json looks like that and my source code is inside custom/plugins/PackageName there is a composer.json inside with dev dependencies. now i run composer require vendorName/packageName -w the package from custom/plugins is now symlinked inside the main vendor but all the dev dependncies are not installed. i tried to delete vendor folder and composer.lock and installed everything and its still does not work. the dev dependencies are inside the composer.lock but the actual dev dependencies are not installed in the main vendor folder iam using composer 2.8.6. maybe i have to configure something so that the dev dependencies are also installed? |
Beta Was this translation helpful? Give feedback.
-
|
This is expected. Dev requirements are only considered for the root package: https://getcomposer.org/doc/04-schema.md#require-dev |
Beta Was this translation helpful? Give feedback.
This is expected. Dev requirements are only considered for the root package: https://getcomposer.org/doc/04-schema.md#require-dev