Closed
Description
Current Behavior:
When untaring a module that has bundledDependencies generated using npm pack
, the node_modules/module-a folder (where module-a is a bundledDependency) contains files that are not in module-a/package.json's files list
Expected Behavior:
node_modules/module-a
should only contain files that are in the files
section of module-a/package.json
Steps To Reproduce:
- Set up a project with Module A and Module B
- Make Module A a bundled dependency of Module B (using npm/yarn link)
- run
npm pack
- untar the generated tar file
Environment:
- OS: MacOS: 10.15.5
- Node: v12.16.2
- NPM: 6.14.4