Ensure .git directories within modules are removed

This was previously done automatically by the
topfloor/composer-cleanup-vcs-dirs Composer plugin, though it's not yet
Composer 2 compatible.

Without this, `web/modules/contrib/plausible/.git` remains and causes
the contrib modules directory to appear whenever `git status` is run.
This commit is contained in:
Oliver Davies 2021-01-10 20:10:44 +00:00
parent 2e94abab55
commit 90e0ca8561

View file

@ -56,7 +56,14 @@
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {},
"scripts": {
"post-install-cmd": [
"rm -fr web/modules/contrib/*/.git"
],
"post-update-cmd": [
"rm -fr web/modules/contrib/*/.git"
]
},
"config": {
"bin-dir": "bin",
"sort-packages": true