prodex 1.0.6 → 1.0.7

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  ---
7
7
 
8
- ## 🧠 Recent Fixes & Updates — v1.0.6
8
+ ## 🧠 Recent Fixes & Updates — v1.0.7
9
9
  - ⭐ **Priority Files Support** — priority files will now appear **first** on the entry selection list.
10
10
 
11
11
  - 🪟 **Windows path resolution fixed** — now uses proper `file://` URLs for full ESM compatibility.
@@ -14,6 +14,16 @@
14
14
 
15
15
  ---
16
16
 
17
+ ---
18
+
19
+ ## 📦 Installation
20
+
21
+ ### Global install (recommended)
22
+ ```bash
23
+ npm install -g prodex
24
+ ```
25
+
26
+
17
27
  ## 🚀 Features
18
28
 
19
29
  | Feature | Description |
@@ -54,9 +64,9 @@ Optional `.prodex.json` (in project root):
54
64
  "priorityFiles": [
55
65
  "routes/web.php",
56
66
  "routes/api.php",
57
- "index",
58
- "main",
59
- "app"
67
+ "index.",
68
+ "main.",
69
+ "app."
60
70
  ]
61
71
  }
62
72
  ```
@@ -69,8 +79,8 @@ Optional `.prodex.json` (in project root):
69
79
 
70
80
 
71
81
 
72
- Files are matched using `.includes()` (case-insensitive), so `"index"` will match `src/index.js`, `app/index.tsx`, etc.
73
- Recommended entries appear at the top of the picker under a **⭐ Recommended entries** section.
82
+ Files are matched using `.includes()` (case-insensitive), so `"index."` will match `src/index.js`, `app/index.tsx`, etc.
83
+ Popular entries appear at the top of the picker.
74
84
 
75
85
 
76
86
 
package/dist/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  ---
7
7
 
8
- ## 🧠 Recent Fixes & Updates — v1.0.6
8
+ ## 🧠 Recent Fixes & Updates — v1.0.7
9
9
  - ⭐ **Priority Files Support** — priority files will now appear **first** on the entry selection list.
10
10
 
11
11
  - 🪟 **Windows path resolution fixed** — now uses proper `file://` URLs for full ESM compatibility.
@@ -14,6 +14,16 @@
14
14
 
15
15
  ---
16
16
 
17
+ ---
18
+
19
+ ## 📦 Installation
20
+
21
+ ### Global install (recommended)
22
+ ```bash
23
+ npm install -g prodex
24
+ ```
25
+
26
+
17
27
  ## 🚀 Features
18
28
 
19
29
  | Feature | Description |
@@ -54,9 +64,9 @@ Optional `.prodex.json` (in project root):
54
64
  "priorityFiles": [
55
65
  "routes/web.php",
56
66
  "routes/api.php",
57
- "index",
58
- "main",
59
- "app"
67
+ "index.",
68
+ "main.",
69
+ "app."
60
70
  ]
61
71
  }
62
72
  ```
@@ -69,8 +79,8 @@ Optional `.prodex.json` (in project root):
69
79
 
70
80
 
71
81
 
72
- Files are matched using `.includes()` (case-insensitive), so `"index"` will match `src/index.js`, `app/index.tsx`, etc.
73
- Recommended entries appear at the top of the picker under a **⭐ Recommended entries** section.
82
+ Files are matched using `.includes()` (case-insensitive), so `"index."` will match `src/index.js`, `app/index.tsx`, etc.
83
+ Popular entries appear at the top of the picker.
74
84
 
75
85
 
76
86
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prodex",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Unified Project Indexer & Dependency Extractor for Laravel + React + Node stacks.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,9 +29,9 @@ export async function initProdex() {
29
29
  "priorityFiles": [
30
30
  "routes/web.php",
31
31
  "routes/api.php",
32
- "index",
33
- "main",
34
- "app"
32
+ "index.",
33
+ "main.",
34
+ "app."
35
35
  ],
36
36
  "entryExcludes": [
37
37
  "resources/js/components/ui/",
@@ -23,14 +23,14 @@ export async function pickEntries(baseDirs, depth = 2, cfg = {}) {
23
23
  );
24
24
 
25
25
  const choices = sorted.map(f => ({
26
- name: prioritized.includes(f) ? `⭐ ${rel(f)}` : rel(f),
26
+ name: rel(f),
27
27
  value: f
28
28
  }));
29
29
 
30
- if (prioritized.length) {
31
- choices.unshift(new inquirer.Separator("⭐ Recommended entries"));
32
- choices.splice(prioritized.length + 1, 0, new inquirer.Separator("─ Other files"));
33
- }
30
+ // if (prioritized.length) {
31
+ // choices.unshift(new inquirer.Separator("⭐ Recommended entries"));
32
+ // choices.splice(prioritized.length + 1, 0, new inquirer.Separator("─ Other files"));
33
+ // }
34
34
 
35
35
  const { picks } = await inquirer.prompt([
36
36
  {
@@ -5,7 +5,8 @@ import {
5
5
  CODE_EXTS,
6
6
  ENTRY_EXCLUDES,
7
7
  IMPORT_EXCLUDES,
8
- BASE_DIRS
8
+ BASE_DIRS,
9
+ PRIORITY_FILES
9
10
  } from "./config.js";
10
11
 
11
12
  /**
@@ -46,18 +47,18 @@ export function loadProdexConfig() {
46
47
  baseDirs: [...new Set([...(userConfig.baseDirs || []), ...BASE_DIRS])],
47
48
  aliasOverrides: userConfig.aliasOverrides || {},
48
49
  limit: userConfig.limit || 200,
49
- priorityFiles: userConfig.priorityFiles || []
50
+ priorityFiles: userConfig.priorityFiles || PRIORITY_FILES
50
51
  };
51
52
 
52
- console.log("?? Active Config:");
53
- console.log(" • Output Directory:", merged.output);
54
- console.log(" • Scan Depth:", merged.scanDepth);
55
- console.log(" • Base Dirs:", merged.baseDirs.join(", "));
56
- if (userConfig.entryExcludes || userConfig.importExcludes)
57
- console.log(" • Custom Exclusions:", {
58
- entries: userConfig.entryExcludes?.length || 0,
59
- imports: userConfig.importExcludes?.length || 0
60
- });
53
+ // console.log("?? Active Config:");
54
+ // console.log(" • Output Directory:", merged.output);
55
+ // console.log(" • Scan Depth:", merged.scanDepth);
56
+ // console.log(" • Base Dirs:", merged.baseDirs.join(", "));
57
+ // if (userConfig.entryExcludes || userConfig.importExcludes)
58
+ // console.log(" • Custom Exclusions:", {
59
+ // entries: userConfig.entryExcludes?.length || 0,
60
+ // imports: userConfig.importExcludes?.length || 0
61
+ // });
61
62
 
62
63
  return merged;
63
64
  }
@@ -29,7 +29,13 @@ export const IMPORT_EXCLUDES = [
29
29
  ];
30
30
  export const BASE_DIRS = ["src", "bin", "schema", "app", "routes", "resources/js"];
31
31
 
32
-
32
+ export const PRIORITY_FILES = [
33
+ "routes/web.php",
34
+ "routes/api.php",
35
+ "index.",
36
+ "main.",
37
+ "app."
38
+ ]
33
39
  /**
34
40
  * Resolver map — links file extensions to their resolver functions.
35
41
  * Extend this to support new formats (.vue, .jsx, etc.).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prodex",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Unified Project Indexer & Dependency Extractor for Laravel + React + Node stacks.",
5
5
  "type": "module",
6
6
  "bin": {