Skip to content

Commit debda56

Browse files
committed
[New] Exclude tests and dev files from release tarballs
[New] .gitattributes export-ignore for tests/, docs/, pkg/, .github/, dev files [Change] pkg/Makefile tar fallback: add --exclude for tests/ and .github/
1 parent cec9824 commit debda56

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Exclude from release tarballs (git archive / GitHub downloads)
2+
tests/ export-ignore
3+
docs/ export-ignore
4+
pkg/ export-ignore
5+
audit-output/ export-ignore
6+
.github/ export-ignore
7+
CLAUDE.md export-ignore
8+
PLAN*.md export-ignore
9+
AUDIT.md export-ignore
10+
HANDOFF.md export-ignore
11+
GEMINI-review.md export-ignore

pkg/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ $(BUILDDIR)/$(TARBALL):
4242
cd $(PROJDIR) && \
4343
tar czf $(BUILDDIR)/$(TARBALL) \
4444
--transform 's,^\./,$(NAME)-$(VERSION)/,' \
45-
--exclude='.git' --exclude='audit-output' \
46-
--exclude='.claude' \
45+
--exclude='.git' --exclude='tests' --exclude='audit-output' \
46+
--exclude='.claude' --exclude='.github' \
4747
--exclude='CLAUDE.md' --exclude='PLAN*.md' \
4848
--exclude='AUDIT.md' --exclude='MEMORY.md' \
4949
--exclude='pkg/build' \

0 commit comments

Comments
 (0)