Build task fails on project without composer.json file
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3502879. -->
Reported by: [grimreaper](https://www.drupal.org/user/2388214)
Related to !323 !322
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>On a project withou a composer.json file, the build task fails like on <a href="https://git.drupalcode.org/project/ui_examples/-/jobs/4167498">https://git.drupalcode.org/project/ui_examples/-/jobs/4167498</a></p>
<pre>$ rm $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME/composer.json # collapsed multi-line command<br>rm: cannot remove 'web/modules/custom/ui_examples/composer.json': No such file or directory</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add optional removal.</p>
issue