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

Custom CLI-based Warnings for Sub-Registries #4997

Open
benderTheCrime opened this issue Nov 27, 2017 · 0 comments
Open

Custom CLI-based Warnings for Sub-Registries #4997

benderTheCrime opened this issue Nov 27, 2017 · 0 comments
Assignees
Labels

Comments

@benderTheCrime
Copy link

benderTheCrime commented Nov 27, 2017

I don't know that I would call this a substantial feature request, but it would certainly depend on the status of this issue:

npm/npm#19249

I would like to implement something similar for Yarn to what is described in that issue/feature request for npm:

My intent is to allow for custom registries to use npm to warn based on their own criteria and a well-defined schema. I was thinking this could be a new optional property on the returned data from the NPM "/package" and "/package/version" endpoints "warnings" or "genericWarnings" which was an Array of Objects possessing at least a "message" property. The CLI could read the presence of this key and then log out any necessary warnings.

Since Yarn works based on the npm registry, this would depend on the presence of the added "packageWarnings" or "genericWarnings" keys in the registry itself, unless someone was to use Yarn with a sub-registry, which is my intent.

I've looked at the source and I cannot find anything other than the engine-based warnings and some other CLI-internals.

Question is: is this something that already exists? If it does not, is it a suitably small feature request? I do not mind implementing this myself.

@ghost ghost assigned Daniel15 Nov 27, 2017
@ghost ghost added the triaged label Nov 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants