Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure dependency on yarn info is optional #2

Open
finn-orsini opened this issue Jan 26, 2022 · 0 comments
Open

Ensure dependency on yarn info is optional #2

finn-orsini opened this issue Jan 26, 2022 · 0 comments

Comments

@finn-orsini
Copy link
Owner

finn-orsini commented Jan 26, 2022

What

This utility internally relies on the output of yarn info for the default getPackageVersionInfo argument.

The default arguments are not documented, and it is unclear if they are available for the public API or only internal methods.

Ensure that:

  • Consumers can easily override the function which fetches package version info
  • The expected return format of that function is specified and decoupled from yarn info, which may require changes to the current setup

Why

This package was initially written for gathering metrics for npm packages, but the metrics apply to any semver versioned library. For other language packages, or those whos info is not available via the info command - this package should be able to accept version information and calculate the specified metrics.

@finn-orsini finn-orsini changed the title Make dependency on yarn info optional Ensure dependency on yarn info is optional Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant