title: Typescript/yarn workspaces - Referenced project may not disable emit
body: <p>I'm trying to setup a monorepo project using typescript and yarn workspaces.</p>
  <p>The project's structure looks like this:</p>
  <pre><code>/example
  /packages
    /lib1
  </code></pre>
  <p>Example is an app that used the packages, for development purposes.</p>
  <p>When I use <code>yarn tsc --build --force</code> I get the following error:</p>
  <pre><code>example/tsconfig.json:6:18 - error TS6310: Referenced project '/packages/intro' may not disable emit.
  </code></pre>
  <p>Here's example's tsconfig.json:</p>
  <pre class="lang-js prettyprint-override"><code>{
    &quot;extends&quot;: &quot;../tsconfig.json&quot;,
    &quot;compilerOptions&quot;: {
      &quot;outDir&quot;: &quot;./lib&quot;
    },
    &quot;references&quot;: [{ &quot;path&quot;: &quot;../packages/intro&quot; }]
  }
  </code></pre>
  <p>And the one at the project's root:</p>
  <pre class="lang-js prettyprint-override"><code>{
    &quot;$schema&quot;: &quot;https://json.schemastore.org/tsconfig&quot;,
    &quot;display&quot;: &quot;React Native&quot;,
    &quot;compilerOptions&quot;: {
      &quot;allowJs&quot;: true,
      &quot;allowSyntheticDefaultImports&quot;: true,
      &quot;baseUrl&quot;: &quot;.&quot;,
      &quot;composite&quot;: true,
      &quot;declaration&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;isolatedModules&quot;: true,
      &quot;jsx&quot;: &quot;react-native&quot;,
      &quot;lib&quot;: [&quot;es2017&quot;],
      &quot;module&quot;: &quot;commonjs&quot;,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;noEmit&quot;: true,
      &quot;paths&quot;: {
        &quot;my-project/*&quot;: [&quot;./packages/*/src&quot;]
      },
      &quot;resolveJsonModule&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;strict&quot;: true,
      &quot;target&quot;: &quot;esnext&quot;
    },
    &quot;exclude&quot;: [
      &quot;packages/*/lib&quot;,
      &quot;node_modules&quot;,
      &quot;babel.config.js&quot;,
      &quot;metro.config.js&quot;,
      &quot;jest.config.js&quot;
    ],
    &quot;references&quot;: [{ &quot;path&quot;: &quot;./example&quot; }, { &quot;path&quot;: &quot;./packages/lib1&quot; }]
  }
  </code></pre>
  <p>And the lib1's tsconfig.json:</p>
  <pre class="lang-js prettyprint-override"><code>{
    &quot;extends&quot;: &quot;../../tsconfig.json&quot;,
    &quot;compilerOptions&quot;: {
      &quot;outDir&quot;: &quot;./lib&quot;
    }
  }
  </code></pre>
  <p>As you can see I do have <code>noEmit</code> set to <code>true</code> so I don't understand what the error is about. I've tried setting the value directly in each tsconfig files but that didn't do anything as expected.</p>