title: Using yarn workspace from monorepo as git module
body: <p>Let's say I have a repo configured like</p>
  
  <pre><code>repoX
  |_ pkgA
  |_ pkgB
  |_ pkgC
  </code></pre>
  
  <p>is it possible to use <code>pkgC</code> from <code>repoX</code> as a git submodule in <code>repoY</code>?</p>
  
  <pre><code>repoY
  |_ pkgX
  |_ pkgC (-&gt; repoX)
  </code></pre>
  
  <p>Constraints:</p>
  
  <ul>
  <li><code>repoX</code> and <code>repoY</code> are private</li>
  <li><code>pkgABC</code> are yarn workspaces </li>
  <li><code>repoX</code> should not be accessible completely for users in <code>repoY</code> only <code>pkgC</code></li>
  </ul>