Skip to content

Commit

Permalink
bin-support: Filter paths with extensions (#63)
Browse files Browse the repository at this point in the history
bin-support: Filter paths with extensions
  • Loading branch information
rwjblue authored Aug 16, 2019
2 parents bc05b02 + ad361a9 commit df8ffba
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 df8ffba

Please sign in to comment.