title: `pnpm add` within a workspace does not add projects from workspace
body: <p>I am working with a very simple monorepo with the following structure:</p>
  <pre><code>.npmrc
  package.json
  pnpm-workspaces.yml
  packages/
    package-1/
    package-2/
  </code></pre>
  <p>When I <code>cd</code> into package-1, I am trying to add a reference to package-2 by doing the following:</p>
  <pre class="lang-sh prettyprint-override"><code>pnpm add @myorg/package-2
  </code></pre>
  <p>But I get the error <code>@myorg/package-2 is not in the npm registry, or you have no permission to fetch it.</code>. I expect that <code>pnpm add</code> would detect that I'm inside a workspace and automatically link workspace packages. Am I missing something here?</p>
  <p>Here is the relevant information you should need:</p>
  <ul>
  <li>My packages use the <code>@myorg/[package-name]</code> convention inside of package.json &quot;name&quot; field.</li>
  <li>The pnpm-workspaces.yml file is as follows:
  <pre><code>packages:
    - 'packages/**'
  </code></pre>
  </li>
  <li>My .npmrc file is as follows:
  <pre><code>link-workspace-packages = true
  prefer-workspace-packages = true
  recursive-install = true
  </code></pre>
  </li>
  </ul>