Is there an existing issue for this?
Current Behavior
In a project with workspaces, run "npm install" and then "npm pack -w a" from the root. Packages specified under bundledDependencies of package/a are NOT included inside the node_modules of the resulting tarball (a-1.0.0.tgz)
Expected Behavior
Packages specified under bundledDependencies of package/a are included inside the node_modules of the resulting tarball (a-1.0.0.tgz)
Steps To Reproduce
- Clone this sample repository
- Ensure you are running npm >= 7
- Run
npm install in the root of the repository
- Run
npm pack -w a in the root of the repository
- Inspect the resulting tarball (a-1.0.0.tgz)
-> Missing bundledDependencies package in node_modules, although package/a declares bundledDependencies
Environment
- OS: macOS 10.15.17
- Node: 15.8.0
- npm: 7.18.1
Is there an existing issue for this?
Current Behavior
In a project with workspaces, run "npm install" and then "npm pack -w a" from the root. Packages specified under bundledDependencies of package/a are NOT included inside the node_modules of the resulting tarball (a-1.0.0.tgz)
Expected Behavior
Packages specified under bundledDependencies of package/a are included inside the node_modules of the resulting tarball (a-1.0.0.tgz)
Steps To Reproduce
npm installin the root of the repositorynpm pack -w ain the root of the repository-> Missing bundledDependencies package in node_modules, although package/a declares bundledDependencies
Environment