Skip to content

Commit

Permalink
bin-support: Filter paths with extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
dcyriller committed Aug 5, 2019
1 parent 0c87c51 commit ad361a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bin-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ async function runTransform(binRoot, transformName, args, extensions = DEFAULT_E
let { paths, options } = parseTransformArgs(args);

try {
let foundPaths = await globby(paths);
let foundPaths = await globby(paths, {
expandDirectories: { extensions: extensions.split(',') },
});
let transformPath = path.join(binRoot, '..', 'transforms', transformName, 'index.js');

let jscodeshiftPkg = require('jscodeshift/package');
Expand Down

0 comments on commit ad361a9

Please sign in to comment.