spinner
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -43,3 +43,3 @@ var spawn = require('child_process').spawn; | ||
if (!options.monitor) { | ||
if (!('monitor' in options) && !('monitor' in globalOptions)) { | ||
var fn = options.script; | ||
@@ -93,2 +93,5 @@ | ||
// watch | ||
options.monitor = options.monitor || globalOptions.monitor; | ||
// make sure we have a name | ||
@@ -95,0 +98,0 @@ if (!options.name) throw new Error('options.name is required'); |
@@ -6,3 +6,3 @@ { | ||
"author": "Elad Ben-Israel <elad.benisrael@gmail.com>", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"contributors": [ ], | ||
@@ -9,0 +9,0 @@ "keywords": [ |
@@ -151,3 +151,3 @@ # spinner # | ||
Monitor is also set to point to the script, so if it changes, the child will be | ||
restarted. | ||
restarted (unless `monitor` is set to `null` in the global options). | ||
@@ -154,0 +154,0 @@ ### spinner.stop(name, callback) ### |
45585
1096