Add module dependencies to composer.json
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3406544. --> Reported by: [chrisfromredfin](https://www.drupal.org/user/74392) Related to !6 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Generally speaking, it's a good idea for your module's composer.json to require its own dependencies. That way your single composer command gives you everything you need to be able to turn the module on.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Spin up a DrupalPod instance from this issue. Note that the build breaks while trying to enable disclosure_menu because `token` (and `twig_tweak`) are missing.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add the two projects (with necessary version constraints, if required) to the `require` section of `composer.json` and update the dependencies listed on the project's description.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>- fix this issue<br> - test this issue<br> - update the project description</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>-none-</p> <h3 id="summary-api-changes">API changes</h3> <p>-none-</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>-none-</p>
issue