indo
indo copied to clipboard
Peer dependencies are not linked
When linking to a local package [A] that another dependency [B] has a "peer dependency" on, the package [A] is not linked into dependency [B] as you might expect. In other words, even though my monorepo uses the local version of package [A], the dependency [B] uses the installed version.
As a (bad) workaround, you can use the link: protocol:
// In the package.json where the peer is installed:
"foo": "link:./path/to/vendor/foo"
The vendor folder exists in the same folder your .indo.json file exists, so you'll have to consider that when writing the link: path.