-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Bugthing that needs fixingthing that needs fixingRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release
Description
Current Behavior:
Negated patterns in the files array of package.json have no effect.
Expected Behavior:
Negated patterns should cause the matching files to be excluded from the published package.
Steps To Reproduce:
-
Add the following
filesarray inpackage.json:"files": [ "**/*.js", "!foo.js" ],
-
Create a
foo.jsfile. -
Run
npm publish --dry-run. -
See how the output incorrectly contains
foo.js.
Environment:
- OS: macOS 10.15.7
- Node: 15.0.1
- npm: 7.0.3
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release