A
A
Alexey Nikolaev2022-02-16 21:00:06
Yarn
Alexey Nikolaev, 2022-02-16 21:00:06

Is it possible to get rid of package duplication in workspaces?

Goodnight.
There is a monorepa - a web app, a mobile app and a ui kit, on React Native + expo. All this is wrapped in yarn workspaces. But there is a problem with ui-kit dependencies: all components and theming comes from expo, nothing is done from scratch. Those. The UI kit will import the expo components in its components. The web application also imports utilities and components from expo.

At the same time, the expo instance inside the kit UI and the expo instance inside the web app are different, because yarn duplicates the same packages in each workspace. peerDependencies don't help and don't work.

Is there a way to deal with the situation? Maybe there are plugins\tools?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question