I am trying to setup a monorepo for a large serverless project. When using yarn workspaces a node_modules folder is created in the root of the repo. All of the shared modules are hoisted into this node_modules and the node_modules folder in the individual serverless applications only contain the unique versions of specific modules. When I deploy or package my application all of the modules that are in the root node_modules folder are missing.
Is there a way to tell serverless to look in each node_modules directory until it hits the repository root?