From f3419e4f2c8abb4a6c356c711d7e15c7ea51dfe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Kr=C3=A1l?= Date: Thu, 12 Nov 2026 15:07:15 +0100 Subject: [PATCH] build(dist): exclude docs from the Composer archive Closes #81 --- .gitattributes | 1 + docs/rule-set.md | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index 8d49f3f..ed58c13 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,3 +5,4 @@ /UPGRADING.md export-ignore /assets export-ignore /build export-ignore +/docs export-ignore diff --git a/docs/rule-set.md b/docs/rule-set.md index e87db0e..fa6d03e 100644 --- a/docs/rule-set.md +++ b/docs/rule-set.md @@ -29,7 +29,7 @@ To change a decision, open an ## What the package installs -`build/`, `.github/`, `assets/`, the dotfiles, `CHANGELOG.md`, and `UPGRADING.md` are marked `export-ignore` -in `.gitattributes`. The rule set itself is `rector.php` and `rules/rules.php`; `composer require` also pulls -down `composer.json`, `README.md`, `LICENSE`, this `docs/` directory, and the AI agent files (`AGENTS.md`, -`.agents/`, `.codex/`), which are not marked `export-ignore`. +`build/`, `docs/`, `.github/`, `assets/`, the dotfiles, `CHANGELOG.md`, and `UPGRADING.md` are marked +`export-ignore` in `.gitattributes`. The rule set itself is `rector.php` and `rules/rules.php`; `composer require` +also pulls down `composer.json`, `README.md`, `LICENSE`, and the AI agent files (`AGENTS.md`, `.agents/`, +`.codex/`), which are not marked `export-ignore`.