How to use composer prp without installing dev packages #672
Unanswered
James-Oakley
asked this question in
Q&A
Replies: 1 comment
-
|
OK, I've found a workflow that works. If you install again after patching, it removes any packages that shouldn't be there, but doesn't undo the patching My question is whether this is intended behaviour, and so the correct workflow, or if this is not the way things are supposed to be. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a number of packages in the
require-devsection ofcomposer.json. In a development environment, they help me test and debug. In production, I install withcomposer install --no-dev.I have a number of patches in patches.json. In production, I'll run
composer prpafter the install command, so all the necessary patches are applied. First, it deletes all the packages that need patching. Before downloading those again, I seeInstalling dependencies from lock file (including require-dev). Sure enough, composer goes on to download all the packages inrequire-dev. This means I now have all of those packages installed (but not enabled) in the production environment.Do I need to change my workflow? Or is this a bug / feature of
composer prp?Beta Was this translation helpful? Give feedback.
All reactions