title: publishConfig is not respected by Yarn 1.22
body: <p>I'm using yarn <code>v1.22</code> and yarn workspace for building my application as a monorepo. Here is the <code>package.json</code> for our component library package. I want to use <code>publishConfig</code> to override the <code>main</code> field when I do <code>npm publish</code> or <code>yarn publish</code>. But when I tried to run those commands, the <code>main</code> field is no changed. Can anyone share some suggestions? Thanks.</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;name&quot;: &quot;components&quot;,
    &quot;private&quot;: false,
    &quot;version&quot;: &quot;0.1.2&quot;,
    &quot;main&quot;: &quot;src/index.ts&quot;,
    &quot;files&quot;: [
      &quot;dist&quot;
    ],
    &quot;publishConfig&quot;: {
      &quot;main&quot;: &quot;dist/index.js&quot;
    }
  }
  </code></pre>