Skip to content

Commit 1a1741f

Browse files
Fixed IGNORE_FILE_PATTERN (#16)
Otherwise we would ignore all files ending with `min.ext`, e.g., `admin.ext`.
1 parent 69d087a commit 1a1741f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const IGNORE_DIRS = [
2626
"build",
2727
];
2828

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

3131
const getAllFiles = (dir, extn, files, result, regex) => {
3232
files = files || fs.readdirSync(dir);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joernio/astgen",
3-
"version": "3.4.0",
3+
"version": "3.5.0",
44
"description": "Generate JS/TS AST in json format with Babel",
55
"exports": "./index.js",
66
"keywords": [

0 commit comments

Comments
 (0)