Hi @AndersDJohnson,
Great library, thanks for making it.
As I was using use-yarn for the first time I realized that it is ideal to use it in applications but probably not in widely distributed libraries since its functionality (when in preinstall) trickles into downstream dependencies. So if Library A implements use-yarn and Library B relies on it then now Library B is effectively also going to get use-yarn as a constraint. Now this might be intended for some people but not for others. I think the key is letting people that use use-yarn know that by using it they will be enforcing this constraint on their downstream dependencies.
So in the end it seems like use-yarn is probably mostly useful for
A) Applications or
B) For libraries whose downstream dependents explicitly do not need to support npm (favoring yarn instead).
Does that sound right to you?
Hi @AndersDJohnson,
Great library, thanks for making it.
As I was using use-yarn for the first time I realized that it is ideal to use it in applications but probably not in widely distributed libraries since its functionality (when in preinstall) trickles into downstream dependencies. So if Library A implements use-yarn and Library B relies on it then now Library B is effectively also going to get use-yarn as a constraint. Now this might be intended for some people but not for others. I think the key is letting people that use use-yarn know that by using it they will be enforcing this constraint on their downstream dependencies.
So in the end it seems like use-yarn is probably mostly useful for
A) Applications or
B) For libraries whose downstream dependents explicitly do not need to support npm (favoring yarn instead).
Does that sound right to you?