title: Running scripts inside multiple node project directories with npm
body: <p><strong>The Context</strong></p>
  
  <p>I have one main project which has multiple node projects inside that as subdirectories. each one with their own <code>node_modules</code> directories and <code>package.json</code> files. I want to have an npm script defined in my main <code>package.json</code> files which runs npm scripts from each of those projects concurrently.</p>
  
  <p><strong>The Code</strong></p>
  
  <p>My directory structure is like this:</p>
  
  <pre><code>main:
    ...
    package.json
  
    - sub-project-1
      - ...
        package.json
    - sub-project-2
      ...
      package.json
  </code></pre>
  
  <p>Sub-project-1/package.json:</p>
  
  <pre><code>...
  "scripts": {
    "start": "node run foo.js"
  }
  </code></pre>
  
  <p>Sub-project-2/package.json:</p>
  
  <pre><code>...
  "scripts": {
    "start": "node run bar.js"
  }
  </code></pre>
  
  <p>Main package.json:</p>
  
  <pre><code>...
  "scripts": {
    "start": "/* Here I want to do something like npm sub-project-1/ start &amp;&amp; npm sub-project-2/ start */
  }
  </code></pre>
  
  <p>Now, obviously I could copy and paste the commands in <code>sub-project-1/package.json</code>'s <code>start</code> script and <code>sub-project-2/package.json</code>'s start script into a bash script and run that instead. But I want to be able to change those <code>npm start</code> scripts without having to manually change the bash script every time. Is there a way to do this?</p>