Repository navigation
pack mishandles npm files negations and dir/**
#1750
With
Any ./repro.sh # NPM_BIN=<real npm> if npm is a shim |
Replies: 2 comments
|
Thanks for the detailed repro. All three cases come from how Fixed in #1752: AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable. |
|
Retested with
NPM_BIN=/path/to/real/npm ./repro.shIt now exits 0 with npm 11.19.0 as the control. Fix shipped in aube 2.7.1 via #1752. Marking your reply as the answer. |
Thanks for the detailed repro. All three cases come from how
packexpanded thefilesfield:!entries were passed to the glob engine as positive patterns, and a trailingdir/**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), anddir/**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.