I have a Drupal 10.3 installation which has already been migrated from Drupal 8 over Drupal 9 to 10.
Currently I have the problem that the folder structure is wrong.
In the doc-root are the empty folders for modules, themes, sites, profiles and some files like robot.txt.
The web-folder contains the folders and files again in the correct form.
This is not a real problem. I can delete the superfluous folders and files and the page works normally afterwards. But as soon as I execute a composer command on the console, they are there again and this is confusing for further work.
I compared composer.json with otherinstallations, which have the right directory structure and i cannot find the difference.
What could be the reason?
Which parts of the composer.json or the installation do I still need to check?
The corresponding place in the composer.json looks now like this:
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"drupal-scaffold": {
"file-mapping": {
"docroot/.htaccess": false
}
},
"installer-paths": {
"web/core": [
"type:drupal-core"
],
...