Skip to content

Commit

Permalink
fix: globby options (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX authored Jan 18, 2020
1 parent 65b5f26 commit 608d312
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ function getRunnerArgs(
}

async function run(filePath, args = {}) {
let paths = await globby([filePath]);
// ignore files from gitignore and node_modules
let paths = await globby([filePath, '!node_modules'], { gitignore: true });
// filter for `.js(x) | .ts(x)`
paths = paths.filter(n => /.(j|t)sx?$/.test(n));

Expand Down

0 comments on commit 608d312

Please sign in to comment.