Skip to content

Expose minversion to callback and expose the package.engines parsing function #57

Description

@jasonblalock

In your cli functionality you are calculating the min version to satisfy the provided range. It would be nice if you exposed this information to the API callback so I could create my own custom messages without installing another instance of semver. Also avoids any semver version mismatches. E.g. semver.minversion(info.wanted) fails if I use semver v7, as I assume the range object has changed since semver v6 that's used in your package.

Separately providing your package engine parsing function for creating options would also be useful. I've basically had to copy and paste that code as I want that functionality, but again want to provide my own error messages.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions