title: How to set registry for namespaced package with yarn?
body: <p>I am giving <code>yarn</code> a try as a replacement for <code>npm</code>.</p>
  
  <p>For npm, we use both a private sinopia registry and for some namespaced package the official repoistory as well, as sinopia doesn't handle the namespace.</p>
  
  <p>Since my <code>.npmrc</code> has these registries defined.</p>
  
  <pre><code>registry=http://sinopia-registry.internal:4873/
  @types:registry=https://registry.npmjs.org
  </code></pre>
  
  <p>I know that I can set the registry globally in <code>yarn</code> in its <code>.yarnrc</code> via:</p>
  
  <pre><code>registry "http://sinopia-registry.internal:4873/"
  </code></pre>
  
  <p>Yet how to I tell yarn to use a different registry form <code>@types</code> namespaced packages?</p>
  
  <p>I tried different approaches on the lines of:</p>
  
  <pre><code>registry @types "https://registry.npmjs.org/"
  </code></pre>
  
  <p>Yet they all lead to yarn to complain about syntax errors.</p>