Adds a deprecation notice for --registry#603
Conversation
|
Hi @arcanis , I'm curious about this and some questions
:) |
|
To better understand the problem, consider that Does it make sense for this second install to potentially fail because the wrong registry is set? Even more insidious, what will happen if we need to clone a git dependency to complete the initial install? Should the git dependencies own dependencies (required to run the prepack script) be also fetched using the proxy? In essence, the problem is that
Yarn 2 is strict regarding extraneous options. Where the v1 was tolerating and ignoring them, the v2 will refuse to execute the command (this is because we can't know if the option is meant to have an argument or not, and thus our parsing may be completely wrong). In this case |
What's the problem this PR addresses?
The Vue CLI currently uses the
--registrywhen runningyarn install. This preventsyarn dlxto work, and thus makes it harder for us to add Vue inside our E2E battery.How did you fix it?
Adding the
--registryflag will cause a warning to appear and the option to be ignored, but won't abort the execution anymore. It would have been nice to error unless we're inside Vue CLI (like we do with Netlify or Zeit, for example), but there is no way to detect it afaik.