@appthreat/atom 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appthreat/atom",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Create atom (⚛) representation for your application, packages and libraries",
5
5
  "exports": "./index.js",
6
6
  "type": "module",
package/utils.mjs CHANGED
@@ -2,29 +2,33 @@ import { join, basename } from "node:path";
2
2
  import { readdirSync, statSync } from "node:fs";
3
3
  import { spawnSync } from "node:child_process";
4
4
 
5
- const IGNORE_DIRS = [
6
- "node_modules",
7
- "venv",
8
- "docs",
9
- "test",
10
- "tests",
11
- "e2e",
12
- "e2e-beta",
13
- "examples",
14
- "cypress",
15
- "jest-cache",
16
- "eslint-rules",
17
- "codemods",
18
- "flow-typed",
19
- "i18n",
20
- "vendor",
21
- "www",
22
- "dist",
23
- "build"
24
- ];
5
+ const IGNORE_DIRS = process.env.ASTGEN_IGNORE_DIRS
6
+ ? process.env.ASTGEN_IGNORE_DIRS.split(",")
7
+ : [
8
+ "node_modules",
9
+ "venv",
10
+ "docs",
11
+ "test",
12
+ "tests",
13
+ "e2e",
14
+ "e2e-beta",
15
+ "examples",
16
+ "cypress",
17
+ "jest-cache",
18
+ "eslint-rules",
19
+ "codemods",
20
+ "flow-typed",
21
+ "i18n",
22
+ "vendor",
23
+ "www",
24
+ "dist",
25
+ "build",
26
+ "__tests__"
27
+ ];
25
28
 
26
29
  const IGNORE_FILE_PATTERN = new RegExp(
27
- "(conf|test|spec|min|\\.d)\\.(js|ts|jsx|tsx)$",
30
+ process.env.ASTGEN_IGNORE_FILE_PATTERN ||
31
+ "(conf|test|spec|min|three|\\.d)\\.(js|ts|jsx|tsx)$",
28
32
  "i"
29
33
  );
30
34