[Feature Request]: Support deployment/infrastructure-related composer.json
file
#33
Open
1 task done
Labels
enhancement
New feature or request
Is your feature request related to a problem?
In projects with a separation of concern between the infrastructure/deployment level and the application level, we use to have two
composer.json
files. The usual one in the root level and a different one in adeployment/
folder. The latter is meant specifically for packages that provide logic for certain tasks during deployments.WP Translation Downloader is required in
./composer.json
. But strictly speaking, it is a package not needed on application but on the infrastructure level. So it would make sense to move it todeployment/composer.json
.However, this currently does not work because it needs the packages it should download translations from to be listed in the
"require"
property of thecomposer.json
file it is part of. This does not apply when used indeployment/
.Describe the desired solution
It would be great to have a WP Translation Downloader option for setting a "parent" or "main"
composer.json
. From there, it would read the"require"
property.This could either be a boolean setting like "search in the parent directory for a
composer.json
file" or a setting withcomposer.json
path as the value.Describe the alternatives that you have considered
Do nothing; keep WP Translation Downloader in main
composer.json
.Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: