@uxf/scripts 11.74.0 → 11.74.4

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": "@uxf/scripts",
3
- "version": "11.74.0",
3
+ "version": "11.74.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -70,6 +70,10 @@ const filePathToRoute = (filePath) => {
70
70
  * @returns {string[]} - Array of resolved file paths
71
71
  */
72
72
  function resolveReexports(filePath) {
73
+ if (filePath.includes("node_modules") && !filePath.includes("node_modules/@uxf/")) {
74
+ return [];
75
+ }
76
+
73
77
  const resolvedFiles = [];
74
78
 
75
79
  if (!fs.existsSync(filePath)) {
@@ -79,8 +83,9 @@ function resolveReexports(filePath) {
79
83
  try {
80
84
  const content = fs.readFileSync(filePath, "utf8");
81
85
 
82
- // Check if this is a re-export file (contains export { } from)
83
- const reexportMatches = content.match(/export\s*\{[^}]*\}\s*from\s*['"]([^'"]+)['"]/g);
86
+ // Check if this is a re-export file with relative imports (contains export { } from or export * from "./file")
87
+ // Absolute imports (export * from "@package/module") are already handled by madge
88
+ const reexportMatches = content.match(/export\s*(?:\{[^}]*\}|\*)\s*from\s*['"](\.[^'"]+)['"]/g);
84
89
 
85
90
  if (reexportMatches) {
86
91
  const fileDir = path.dirname(filePath);