Skip to content

Replace optionalDependencies with peerDependencies #1294

@GauBen

Description

@GauBen

Hi!

@cyclonedx/cyclonedx-library currently relies on optionalDependencies for some features. Because this mechanism is not really well-known (or even accessible), consumers end up with 10MB of additional dependencies.

My recommendation is to make these dependencies opt-in instead of opt-out:

Since this package is a software library not intended for standalone use, this would allow consumers to provide the required dependencies for the features they need.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions