This project demonstrates that composer 2 will delete a local path repository if it is used in conjunction with composer/installers.
Steps to reproduce:
- clone this repo
- composer install
- composer update
After this runs, the core directory is removed.