Skip to content

Magento2: How to create a patch for custom module composer.json?

I want to know that can we create patch for some changes in composer.json of custom module. I am talking about custom module composer not magento composer. Its just like changes but instead of any php file i want to do it in composer.json. Is there a different way? I am using the same old way but its not working.

diff –git a/composer.json b/composer.json

— a/composer.json

+++ b/composer.json