Skip to content

Commit

Permalink
Fixed IGNORE_FILE_PATTERN (#16)
Browse files Browse the repository at this point in the history
Otherwise we would ignore all files ending with `min.ext`, e.g., `admin.ext`.
  • Loading branch information
max-leuthaeuser authored Aug 31, 2023
1 parent 69d087a commit 1a1741f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const IGNORE_DIRS = [
"build",
];

const IGNORE_FILE_PATTERN = new RegExp("(conf|test|spec|min|\\.d)\\.(js|ts|jsx|tsx)$", "i");
const IGNORE_FILE_PATTERN = new RegExp("(conf|test|spec|[.-]min|\\.d)\\.(js|ts|jsx|tsx)$", "i");

const getAllFiles = (dir, extn, files, result, regex) => {
files = files || fs.readdirSync(dir);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joernio/astgen",
"version": "3.4.0",
"version": "3.5.0",
"description": "Generate JS/TS AST in json format with Babel",
"exports": "./index.js",
"keywords": [
Expand Down

0 comments on commit 1a1741f

Please sign in to comment.