Repository navigation
[Backport 5.x] chore: npm ignore remaining agent files - #7003
Merged
Merged
Conversation
The published tarball for fastify 5.12.1 ships a `.pi/self-learning-memory/` directory of local agent notes. `.gitignore` already lists the agent files under "Agents files", but `.npmignore` only covers `.claude/` and `CLAUDE.md`, and npm stops reading `.gitignore` once an `.npmignore` exists. This adds the remaining entries so `AGENTS.md`, `.agent`, `.agents/` and `.pi/` stay out of the package. None of them are tracked in the repo, so `npm pack --dry-run` on a clean checkout shows no change. With the files present in the working tree, which is how they ended up in the 5.12.1 tarball, they are listed before the change and gone after it, and nothing else drops out of the file list. `5.x` has the same gap, so this probably wants a `backport 5.x` label on merge. Closes #6995 #### Checklist - [x] commit message and PR title follow [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) (cherry picked from commit 4cdb0c5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport 4cdb0c5 from #6996.