Skip to content

fix: exclude template-repo-only files from generated projects - #3

Merged
nishide-dev merged 1 commit into
mainfrom
fix/exclude-template-meta-files
Aug 7, 2026
Merged

fix: exclude template-repo-only files from generated projects#3
nishide-dev merged 1 commit into
mainfrom
fix/exclude-template-meta-files

Conversation

@nishide-dev

Copy link
Copy Markdown
Owner

Summary

  • Add docs/, README-ja.md, CLAUDE.md, and .claude/ to copier's _exclude list so template-repository metadata no longer leaks into generated projects.

Why

Running copier copy currently copies the template repo's own development docs (docs/superpowers/...), Japanese README, and Claude Code config into every generated project.

Notes

The plain README.md / .gitignore are intentionally NOT excluded: copier matches _exclude patterns against paths after stripping the .jinja suffix, so excluding them would also remove the rendered outputs of README.md.jinja / .gitignore.jinja (verified — it breaks the post-generation uv sync).

Test plan

  • uvx copier copy --trust --defaults . /tmp/test-project succeeds (including post-gen uv sync and quality checks)
  • Generated project no longer contains docs/, README-ja.md, CLAUDE.md, .claude/
  • Generated README.md is the rendered README.md.jinja output

🤖 Generated with Claude Code

docs/, README-ja.md, CLAUDE.md, and .claude/ belong to the template
repository itself and were leaking into generated projects. Add them
to copier's _exclude list.

Note: the plain README.md and .gitignore cannot be excluded because
_exclude patterns match paths after the .jinja suffix is stripped,
so excluding them would also drop the rendered README.md.jinja /
.gitignore.jinja outputs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@nishide-dev
nishide-dev merged commit a609f27 into main Aug 7, 2026
25 of 34 checks passed
@nishide-dev
nishide-dev deleted the fix/exclude-template-meta-files branch August 7, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant