diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2014-02-01 06:50:27 +0400 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2014-02-01 06:50:27 +0400 |
commit | 63cee64e8d5985cbf410cc7ce10a3263bf3eadfa (patch) | |
tree | 6495eba62374a3fb9c7d73d4ed4fb3b32cfc14f1 | |
parent | 9464ba6b7c68bb3fdb51a39097ffe5bd5e5473a2 (diff) |
fix double restart on startup with `npm run watch`
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 4ade0bd..2d04656 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "scripts": { "build": "browserify --debug index.js > chrome/bundle.js", - "watch": "watchify index.js -o chrome/bundle.js -dv & nodemon -w chrome/bundle.js ./bin/start.js", + "watch": "watchify index.js -o chrome/bundle.js -dv & (sleep 1 && nodemon -w chrome/bundle.js ./bin/start.js)", "start": "npm run build && ./bin/start.js", "test": "tape test/*.js" }, |