title: How do I override nested dependencies with `yarn`?
body: <p>If my package has these dependencies</p>
  
  <pre><code>{ "name": "my-package",
    "dependencies": { "foobar":"~1.0.3", "baz":"2.0.9" }
  </code></pre>
  
  <p>And the <code>foobar</code> package has these dependencies</p>
  
  <pre><code>{ "name": "foobar",
    "dependencies": { "baz":"^2.0.0" }
  </code></pre>
  
  <p>and the most recently released version of <code>baz</code> is <code>2.1.0</code>, the first run of <code>yarn</code> will install <code>baz@2.1.0</code> in <code>foobar/node_modules</code>.</p>
  
  <p>How do I force yarn to use the <code>baz@2.0.9</code> package for <code>foobar</code>?</p>
  
  <p>My understanding is that this would be possible using <code>npm shrinkwrap</code> (a la <a href="https://stackoverflow.com/questions/15806152/how-do-i-override-nested-npm-dependency-versions">this question</a>).</p>
  
  <hr>
  
  <p>The summary of my question probably is: Yarn creates repeatable, deterministic installations, but how do I customize that installation?</p>