Each of the repos for WP-CLI commands contain their own .distignore file (example).
When a package is sent to Composer's Packagist, this file isn't used, because Packagist uses the Source code ZIP that GitHub builds for each release, and that uses git archive which doesn't read .distignore and uses .gitattributes instead.
In order to ignore unwanted files in Composer distributions, a .gitattributes file should be introduced which contains a list of files to ignore with a export-ignore property (example).
What would be the best way to introduce this file to all command repos?
Each of the repos for WP-CLI commands contain their own
.distignorefile (example).When a package is sent to Composer's Packagist, this file isn't used, because Packagist uses the
Source codeZIP that GitHub builds for each release, and that usesgit archivewhich doesn't read.distignoreand uses.gitattributesinstead.In order to ignore unwanted files in Composer distributions, a
.gitattributesfile should be introduced which contains a list of files to ignore with aexport-ignoreproperty (example).What would be the best way to introduce this file to all command repos?