return original input if glob returned nothing in babel-cli - fixes #1591
This commit is contained in:
parent
fa22d7dca0
commit
52a2e3e17c
@ -79,7 +79,9 @@ if (commander.extensions) {
|
||||
var errors = [];
|
||||
|
||||
var filenames = commander.args.reduce(function (globbed, input) {
|
||||
return globbed.concat(glob.sync(input));
|
||||
var files = glob.sync(input);
|
||||
if (!files.length) files = [input];
|
||||
return globbed.concat(files);
|
||||
}, []);
|
||||
|
||||
each(filenames, function (filename) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user