title: Run Yarn tasks from a parent directory
body: <p>I have a project that contains several sub projects, one of which is a JavaScript project. I want to use the JavaScript project as a task runner for the entire project via <code>gulp</code> but I'm running into some trouble.</p>
  
  <p>My project structure is essentially:</p>
  
  <pre><code>root 
       |_
         js-client 
                  |_
                     package.json
                  |_
                     node_modules
       |_
         go-server
  </code></pre>
  
  <p>I've determined that <code>.yarnrc</code> can be used to specify a different <code>node_modules</code> location, so I moved <code>package.json</code> to the <code>root</code> directory and created this <code>.yarnrc</code> file:</p>
  
  <pre><code>--modules-folder client/node_modules
  </code></pre>
  
  <p>Now when I run <code>yarn install</code> from the root directory, the modules do get installed exactly as I expect in the specified location but when I run <code>yarn build</code> I get this error:</p>
  
  <pre><code>[09:46:17] Local modules not found in ~/Documents/Projects/root
  [09:46:17] Try running: npm install
  </code></pre>
  
  <p>I'm guessing this means <code>--modules-folder</code> is only used as a flag for <code>install</code> and not for <code>run</code>. Is what I'm trying to do possible, or do I just have to create a separate yarn project to run tasks? I'd rather not rely on global to accomplish this</p>