@cparra/apexdocs 3.17.0-beta.2 → 3.17.0-beta.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/dist/cli/generate.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1473,12 +1473,21 @@ function getWorkerEntrypointPath() {
|
|
|
1473
1473
|
if (fs.existsSync(candidate1)) {
|
|
1474
1474
|
return candidate1;
|
|
1475
1475
|
}
|
|
1476
|
+
const candidate1b = path$1.resolve(__dirname, "../apex-reflection.worker.js");
|
|
1477
|
+
if (fs.existsSync(candidate1b)) {
|
|
1478
|
+
return candidate1b;
|
|
1479
|
+
}
|
|
1476
1480
|
let dir = __dirname;
|
|
1477
|
-
for (let i = 0; i <
|
|
1478
|
-
const
|
|
1479
|
-
const
|
|
1480
|
-
if (fs.existsSync(
|
|
1481
|
-
return
|
|
1481
|
+
for (let i = 0; i < 10; i++) {
|
|
1482
|
+
const maybeDist1 = path$1.resolve(dir, "../../..");
|
|
1483
|
+
const candidate2a = path$1.resolve(maybeDist1, "core", "reflection", "apex", "apex-reflection.worker.js");
|
|
1484
|
+
if (fs.existsSync(candidate2a)) {
|
|
1485
|
+
return candidate2a;
|
|
1486
|
+
}
|
|
1487
|
+
const maybeDist2 = path$1.resolve(dir, "../../../..");
|
|
1488
|
+
const candidate2b = path$1.resolve(maybeDist2, "core", "reflection", "apex", "apex-reflection.worker.js");
|
|
1489
|
+
if (fs.existsSync(candidate2b)) {
|
|
1490
|
+
return candidate2b;
|
|
1482
1491
|
}
|
|
1483
1492
|
const parent = path$1.dirname(dir);
|
|
1484
1493
|
if (parent === dir) break;
|