I have a folder structure like this
- root
- libs
- project-a
- project-b
Now I use link in package json to link libs to my projects. But a lot of weird things happen. Modules are not installed properly... etc Some node_modules are not even installed, a node_module complains is missing some other things. node_modules are not installed the same way if you run twice... etc super weird issues. I use yarn.
I was wondering how do you deal with this?
Another option is to build libs to js and publish to npm. But every change, requires a ton of work, is a pain. Also when you click through an import, it will go to the built .js file instead of source code. So editing is also a pain, you need to manually open the file. Currently I can just click through to the source of libs from any project.


