title: Firebase Functions with Yarn workspaces
body: <p>We're starting to adopt a monorepo setup using yarn workspaces and we'd like to have our firebase functions inside it. The repo structure is something like:</p>
  
  <pre><code>repo
      node_modules &lt;- all dependencies
      packages
          core
          commom
          functions &lt;- firebase functions
  </code></pre>
  
  <p>So, I have 2 problems with this setup:</p>
  
  <ol>
  <li>The dependencies of the functions don't live on the same folder as the entry file from functions</li>
  <li>The functions depends on other packages such as <code>core</code> and <code>commom</code> that are in the repo so yarn symlinks from node_modules to the packages in the repo.</li>
  </ol>
  
  <p>Is there anyway I can handle this?</p>