Skip to content

align-deps: add a toggle to show why a dependency got added #2454

Closed

Description

@tido64

This command/flag is modeled after yarn why. Example usage:

% rnx-align-deps --why @react-native-community/netinfo
├─ some-package
│  └─ @react-native-community/netinfo (via 'storage')
│
└─ another-package
   └─ @react-native-community/netinfo (via 'storage')

align-deps scans the current package (either in the current directory, or the directory specified by the user) for dependencies that require the specified package, including the corresponding capability.

--why is its own command, on the same line with --init, --export-catalogs, --set-version, and is therefore directly incompatible with them. Similarly, it does not invoke a check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfeature: align-deps

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions