smart-restart
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -30,2 +30,3 @@ #!/usr/bin/env node | ||
restartOnError: true, | ||
restartOnExit: true, | ||
killSignal: 'SIGINT', | ||
@@ -62,3 +63,3 @@ command: process.argv[0], | ||
childRunning = false | ||
restart() | ||
if (options.restartOnExit) restart() | ||
} | ||
@@ -65,0 +66,0 @@ |
{ | ||
"name": "smart-restart", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Like nodemon but only watches require()d files. Like piping but easy to use with node-inspector.", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -47,2 +47,4 @@ # smart-restart | ||
], | ||
restartOnError: true, // optional, restart when child process has an uncaught error/promise rejection (default: true) | ||
restartOnExit: true, // optional, restart when child process exits (default: true) | ||
}) | ||
@@ -49,0 +51,0 @@ ``` |
291211
207
53