Skip to content

Commit e37ff13

Browse files
Added *.xsjs and *.xsjslib as file extensions (#30)
1 parent ab9a689 commit e37ff13

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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.23.0",
3+
"version": "3.24.0",
44
"description": "Generate JS/TS AST in json format with Babel",
55
"exports": "./index.js",
66
"keywords": [

src/Defaults.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export const JS_EXTENSIONS: string[] = [
66
".jsx",
77
".cjs",
88
".mjs",
9+
".xsjs",
10+
".xsjslib",
911
".ts",
1012
".tsx"
1113
]
@@ -32,7 +34,7 @@ export const IGNORE_DIRS: string[] = [
3234
];
3335

3436
export const IGNORE_FILE_PATTERN: RegExp =
35-
new RegExp("(chunk-vendors|app~|mock|e2e|conf|test|spec|[.-]min|\\.d)\\.(js|ts|jsx|tsx)$", "i");
37+
new RegExp("(chunk-vendors|app~|mock|e2e|conf|test|spec|[.-]min|\\.d)\\.(js|jsx|cjs|mjs|xsjs|xsjslib|ts|tsx)$", "i");
3638

3739
export const MAX_LOC_IN_FILE: number = 50000;
3840

0 commit comments

Comments
 (0)