I'm using lerna to manage a multipackage monorepo.
It works well in my development environment, where I can be working on multiple packages that have dependencies on each other and the code keeps working.
However, I'm running into some trouble building this code for production.
Essentially, the problem is, when I compile my code, I'll get some cjs modules that have
The dependency will exist as a symlink in the
node_modules folder, and so works in my development environment.
However, if I'm wanting to copy node_modules onto a docker image, this won't work, as Docker just ignores symlinks.
What I would like to do, is have a command that inspects
node_modules for symlinks, and if they exist, then just copy all the files to be concrete files.
Is this possible? What is the terminology?