[BUG] npm pack does not include certain README/LICENSE/NOTICE files in archive #3334
Open
1 task done
Labels
Bug
thing that needs fixing
Needs Discussion
is pending a discussion
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
Documentation for
files
field inpackage.json
says:and npm@6 seems to follow these statements.
But,
README/LICENSE/NOTICE files are usually required when redistributing third-party libraries. This change without documentation makes the people doing code vendoring go against OSS licenses without noticing if they depend on the old behavior.
Expected Behavior
npm@7 should include these files in the generated archive as documented and also as npm@6 did. Or, update the documents to reflect this breaking change.
Steps To Reproduce
package.json
in an empty directory with the following content:npm pack --dry
to see which files are included in the archive.Following are the
npm pack
results on my machine using npm@6 and npm@7. NOTICE and LICENSE files are not included when using npm@7.Environment
The text was updated successfully, but these errors were encountered: