Skip to content

Commit df8ffba

Browse files
author
Robert Jackson
authored
bin-support: Filter paths with extensions (#63)
bin-support: Filter paths with extensions
2 parents bc05b02 + ad361a9 commit df8ffba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin-support.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ async function runTransform(binRoot, transformName, args, extensions = DEFAULT_E
1212
let { paths, options } = parseTransformArgs(args);
1313

1414
try {
15-
let foundPaths = await globby(paths);
15+
let foundPaths = await globby(paths, {
16+
expandDirectories: { extensions: extensions.split(',') },
17+
});
1618
let transformPath = path.join(binRoot, '..', 'transforms', transformName, 'index.js');
1719

1820
let jscodeshiftPkg = require('jscodeshift/package');

0 commit comments

Comments
 (0)