title: Nodemon doesn't exec command while restarting
body: <p>I have a problem about the --exec parameter of nodemon. Following this article (<a href="http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/" rel="nofollow">http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/</a>) i try to set up my dev environnement with only NPM but nodemon refuse to serve my node server when i put --exec argument.</p>
  
  <p>My scripts in package.json :</p>
  
  <pre><code>"scripts": {
      "clean": "rimraf src/app/build/app.bundle.js",
      "build": "browserify src/app/scripts/app.js &gt; src/app/build/app.bundle.js",
      "serve": "nodemon server.js --ignore src/app/build --exec \"npm run build\"",
      "cbs": "npm run clean &amp;&amp; npm run build &amp;&amp; npm run open &amp;&amp; npm run serve",
  
      "open:dev": "opener http://localhost:9000",
  },
  </code></pre>
  
  <p>And this is what i get in my git bash : </p>
  
  <pre><code>poc-js-pdf@0.0.1 serve C:\Users\Mdeumie\Projets\Archi\poc-js-pdf
  nodemon server.js --ignore src/app/build --exec "npm run build"
  
  [nodemon] 1.8.1
  [nodemon] to restart at any time, enter `rs`
  [nodemon] watching: *.*
  [nodemon] starting `npm run build server.js`
  
  poc-js-pdf@0.0.1 build C:\Users\Mdeumie\Projets\Archi\poc-js-pdf
  browserify src/app/scripts/app.js &gt; src/app/build/app.bundle.js "server.js"
  
  [nodemon] clean exit - waiting for changes before restart
  </code></pre>
  
  <p>Off course my server.js is not reachable in my browser and i don't understand why it seems to be executing this <strong><em>starting npm run build server.js</em></strong></p>
  
  <p>Thanks if someone has an idea about this.</p>