Yalc package includes node_modules
Repro steps:
Publish my package to yalc like:
yalc publish
then install it in the needed other repo like...
yalc add my-package
Inspect /node_modules/my-package
It includes it's own node_modules folder e.g....
/node_modules/my-package
/build
/node_modules
This is problematic and breaking my build. In this case for our project all the dependencies needed for my-package are peerDependencies and including node_modules is causing react-intl to be duplicated which breaks the interoperability of the context provider.
i dont have node_modules exported. Are you explicitely export it via files directive in package.json?
Probably your package manager while install puts this folder there.
Work well on my project too without node_modules
@bramski Would be nice if you can setup sandbox of your project, I'm curious why node_modules is installed