Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
okunishinishi committed Nov 3, 2015
1 parent bff5939 commit 0a53964
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/watch_files.js
Expand Up @@ -25,8 +25,11 @@ function watchFiles(filenames, options, handler) {
filenames = args.shift('string|array');
options = args.pop('object') || {};

var cwd = options.cwd || process.cwd();
filenames = expandglob.sync(filenames, {
cwd: options.cwd || process.cwd()
cwd: cwd
}).map(function(filename){
return path.resolve(cwd, filename);
}).filter(fs.existsSync);
colorprint.info('[watchFiles] Start watch files...');
colorprint.trace('%s', filenames);
Expand Down

0 comments on commit 0a53964

Please sign in to comment.