Skip to content

Optional dependencies for native packages are counted incorrectly #3110

Description

@gameroman

Describe the bug

Example: rolldown

Actual:

2 direct, 10 total

Image

Expected:

2 direct, 2 total

Additional context

While it is correct to count optional dependencies as dependencies in general,
for native packages they should not be treated as an actual dependency

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending triageNew issue waiting for initial maintainer triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions