Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-02-01 06:50:27 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-02-01 06:50:27 +0400
commit63cee64e8d5985cbf410cc7ce10a3263bf3eadfa (patch)
tree6495eba62374a3fb9c7d73d4ed4fb3b32cfc14f1
parent9464ba6b7c68bb3fdb51a39097ffe5bd5e5473a2 (diff)
fix double restart on startup with `npm run watch`
-rw-r--r--package.json2
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"
},