drupal-finder
drupal-finder copied to clipboard
Incorrect composer root identified when two composer.json files are present
I have a directory structure like this:
composer.json
docroot
- composer.json
vendor
When I am working in the docroot directory, Drupal finder incorrectly identifies the docroot as the composer root.
I believe that this is a valid use case.
Perhaps it would be sufficient to verify that the vendor directory exists in the composer root?
The --debug flag helps to identify these issues.
A check for the vendor folder may point people in the wrong direction. E.g. running composer install in the docroot is not the proper solution for this kind of problem. The composer.json is docroot should be removed.