title: Share module between multiple projects in a monorepo
body: <p>I have a small monorepo with a few projects (they share the same data stores, so it's easier to have them together in a monorepo for development and testing). Each project is in its own folder, with its own package.json. Each project is meant to be deployed on its own (independent of the other projects).</p>
  
  <p>I would like to share some code between the projects. I want to maintain their relative independence, so I'd rather not have to create a "build" step in the root repo folder, as well as having each project's own build step. Ideally deployment of each project would continue to be done in the project's folder, without it needing to know about other projects.</p>
  
  <p>I know I could create an npm module in the repo and <code>npm link</code> to it from each project. This is the solution I'm leaning toward. But I'm wondering if anyone has a better idea.</p>
  
  <p>Here's an example of what the directory structure kinda looks like:</p>
  
  <pre><code>/package.json
  /docker-compose.yml
  /project-1/package.json
  /project-2/package.json
  </code></pre>
  
  <p>If I went with the <code>npm link</code> solution, I would add something like a <code>project-shared</code> folder and link to it from <code>project-1</code> and <code>project-2</code>.</p>