From 19bd95c29d4a349c4943596874a0f92f8f37589d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=99=9A=20PH=E2=91=A6=20de=20Soria=E2=84=A2=E2=99=9B?= Date: Sat, 12 Mar 2022 13:00:41 +1030 Subject: [PATCH 1/2] Ignore dev/testing files for distribution builds `.gitattributes` file was missing. It's actually a good idea to exclude unneeded dev files from the final production zip archive file, which is also downloaded by composer (unless --prefer -source is specified). Those files are indeed only useful when working on the library itself. --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..74547e77 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Ignore dev/testing files for distribution builds +/tests export-ignore +CODEOWNERS export-ignore +.gitattributes export-ignore +.gitignore export-ignore +phpunit.xml export-ignore From e4b067b47d35dccb1b8d44b0655305eaa3ed1103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=99=9A=20PH=E2=91=A6=20de=20Soria=E2=84=A2=E2=99=9B?= Date: Sat, 12 Mar 2022 13:05:45 +1030 Subject: [PATCH 2/2] Add `repository.json` as well --- .gitattributes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 74547e77..b85c6d93 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,7 @@ # Ignore dev/testing files for distribution builds /tests export-ignore -CODEOWNERS export-ignore .gitattributes export-ignore .gitignore export-ignore phpunit.xml export-ignore +CODEOWNERS export-ignore +repository.json export-ignore