Skip to content
Discussion options

You must be logged in to vote

Thanks for the detailed repro. All three cases come from how pack expanded the files field: ! entries were passed to the glob engine as positive patterns, and a trailing dir/** only matched directories.

Fixed in #1752: ! entries now exclude already-selected files (!**/__tests__ matches at any depth, !lib/__tests__ is anchored to the package root), and dir/** includes the whole tree. One limit: a negation only affects entries listed before it.

AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable.

Replies: 2 comments

Comment options

jdx
Oct 15, 2026 — with coder-jdx
Maintainer

You must be logged in to vote
0 replies
Answer selected by mwolson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants