@awesomeness-js/server 1.1.2 → 1.1.3
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 +1 -1
- package/src/componentDependencies.js +15 -1
package/package.json
CHANGED
|
@@ -11,7 +11,16 @@ function urlToFsPath(u) {
|
|
|
11
11
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
let p = fileURLToPath(u);
|
|
15
|
+
|
|
16
|
+
// ✅ Guard against malformed file URLs on Linux producing "usr/..." instead of "/usr/..."
|
|
17
|
+
if (path.sep === "/" && !p.startsWith("/")) {
|
|
18
|
+
|
|
19
|
+
p = "/" + p;
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return p;
|
|
15
24
|
|
|
16
25
|
}
|
|
17
26
|
|
|
@@ -63,6 +72,11 @@ export default function componentDependencies(allComponents, {
|
|
|
63
72
|
|
|
64
73
|
});
|
|
65
74
|
|
|
75
|
+
console.log({
|
|
76
|
+
component,
|
|
77
|
+
candidateRoots
|
|
78
|
+
});
|
|
79
|
+
|
|
66
80
|
let allFiles;
|
|
67
81
|
let chosenRoot;
|
|
68
82
|
let lastErr;
|