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:
parent
2e94abab55
commit
90e0ca8561
|
@ -56,7 +56,14 @@
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"scripts": {},
|
"scripts": {
|
||||||
|
"post-install-cmd": [
|
||||||
|
"rm -fr web/modules/contrib/*/.git"
|
||||||
|
],
|
||||||
|
"post-update-cmd": [
|
||||||
|
"rm -fr web/modules/contrib/*/.git"
|
||||||
|
]
|
||||||
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"bin-dir": "bin",
|
"bin-dir": "bin",
|
||||||
"sort-packages": true
|
"sort-packages": true
|
||||||
|
|
Loading…
Reference in a new issue