Skip to content

[BUG] --prod flag includes devDependencies of workspace packages in module's dependencies list #256

@Llois41

Description

@Llois41

Describe the bug

When having a workspace package, importing it as a dependency leads cyclonedx-yarn to include their devDependency in the SBOM as well.

To Reproduce

https://github.com/Llois41/cyclondx-dev-dependency-reproduction/tree/master

Expected behavior

I would expect that in the created sbom.json file there will also only be production dependencies of the workspace's package.

Environment

  • @cyclonedx/yarn-plugin-cyclonedx version: 2.0.0
  • yarn version: 4.5.3
  • Node version: 22.13.1
  • OS: MacOS

Contribution

  • I am willing to provide a fix
  • I will wait until somebody else fixes it

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions