title: How to stop npm script running in background automatically
body: <p>Im using npm scripts, I have some of them that should run in parallel. I've got something like this:</p>
  
  <pre><code>...
  scripts: {
     "a": "taskA &amp;",
     "preb": "npm run a",
     "b": "taskB"
  }
  ...
  </code></pre>
  
  <p>This is fine! But I'd like to kill automatically taskA running the background after taskB has finished.</p>
  
  <p>How can I do that?
  Thanks!</p>