Skip to content

[BUG] Workspaces - bundledDependencies missing in tarball after npm pack #3466

@noelvillagonzalo

Description

@noelvillagonzalo

Is there an existing issue for this?

  • I have searched the existing issues

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

  1. Clone this sample repository
  2. Ensure you are running npm >= 7
  3. Run npm install in the root of the repository
  4. Run npm pack -w a in the root of the repository
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 2secondary priority issueRelease 7.xwork is associated with a specific npm 7 releaseconfig:workspacesrelated to `--workspaces`ws:libnpmpackRelated to the libnpmpack workspace

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions