diff --git a/index.js b/index.js index 3e071bb..522ae6c 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,7 @@ module.exports = function (options) { script.on('log', function (log) { if (~log.message.indexOf('files triggering change check')) { if (typeof options.tasks === 'function') run(options.tasks(log.message.split('files triggering change check: ').pop().split(' '))) + else run(options.tasks) } }) } else { diff --git a/package.json b/package.json index 02ae90a..d1b3206 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gulp-nodemon", - "version": "2.0.0", + "version": "2.0.1", "description": "it's gulp + nodemon + convenience", "main": "index.js", "scripts": {