DEV Community

loading...

Discussion on: How to handle peer dependencies when developing modules

Collapse
arcanis profile image
Maël Nison • Edited

The yarn link implementation will, from the v2 onward, be able to properly follow peer dependencies. So if you're developing react-foo which has a peer dependency on react, you'll just have to go into your application, run yarn add react, yarn link ~/react-foo, and you'll be ready to go.

Collapse
yvonnickfrin profile image
🦁 Yvonnick FRIN Author • Edited

Really nice to hear Maël! I can't wait to test yarn v2. Is there an alpha version available or something similar?

Collapse
arcanis profile image
Maël Nison

We're developing it over at github.com/yarnpkg/berry - it's usable, but still developer preview for now 🙂