How to reduce node_modules in Monorepo - only install dependencies of one subpackage?

Yeah, this is a problem in general with node and monorepos. The manual approach is what I’ve seen work for for projects like RedwoodJS. See our Dockerfile for that here: flyctl/Dockerfile at master · superfly/flyctl · GitHub.

For me, the staggering number of options for managing this stuff under Node makes it hard to know what the right approach is!

1 Like