-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle include, exclude globs (#675)
## Summary: This fixes a bug where we treated input globs as ignore format globs. This speeds up our processing as now file paths provided at the command-line won't lead to extra glob parsing. Also refactors a few things for easier following of the code and test isolation. In addition, the main entrypoint is now `main.js`. This paves the way for us to also export an API. Some more work to be done there though as the `checkSync` function is not sufficiently isolated for that to be the API. Issue: Fixes #671 ## Test plan: `yarn test` Author: somewhatabstract Reviewers: somewhatabstract, kevinbarabash Required Reviewers: Approved by: Checks: ⌛ Lint and flow check (ubuntu-latest, 16.x), ⌛ Update test coverage (ubuntu-latest, 16.x), ⌛ Analyze (javascript), ⏭ dependabot Pull request URL: #675
- Loading branch information
1 parent
d96418a
commit 5a7ce8d
Showing
25 changed files
with
319 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env node | ||
require("@babel/register"); | ||
require("../src/cli.js").run(__filename); | ||
require("../src/main.js").run(__filename); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env node | ||
require("../dist/cli.js").run(__filename); | ||
require("../dist/main.js").run(__filename); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.