@rubytech/taskmaster 1.0.78 → 1.0.80
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/build-info.json
CHANGED
|
@@ -5,7 +5,6 @@ export function resolveBundledPluginsDir() {
|
|
|
5
5
|
return resolveBundledPluginsDirDetailed().dir;
|
|
6
6
|
}
|
|
7
7
|
export function resolveBundledPluginsDirDetailed() {
|
|
8
|
-
const triedPaths = [];
|
|
9
8
|
const override = process.env.TASKMASTER_BUNDLED_PLUGINS_DIR?.trim();
|
|
10
9
|
if (override)
|
|
11
10
|
return { dir: override, source: "env" };
|
|
@@ -13,29 +12,19 @@ export function resolveBundledPluginsDirDetailed() {
|
|
|
13
12
|
try {
|
|
14
13
|
const execDir = path.dirname(process.execPath);
|
|
15
14
|
const sibling = path.join(execDir, "extensions");
|
|
16
|
-
triedPaths.push(sibling);
|
|
17
15
|
if (fs.existsSync(sibling))
|
|
18
16
|
return { dir: sibling, source: "exec-sibling" };
|
|
19
17
|
}
|
|
20
18
|
catch {
|
|
21
19
|
// ignore
|
|
22
20
|
}
|
|
23
|
-
//
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return { dir: candidate, source: "walk-up" };
|
|
31
|
-
const parent = path.dirname(cursor);
|
|
32
|
-
if (parent === cursor)
|
|
33
|
-
break;
|
|
34
|
-
cursor = parent;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch {
|
|
38
|
-
// ignore
|
|
21
|
+
// This file compiles to dist/plugins/bundled-dir.js.
|
|
22
|
+
// extensions/ is at the package root — exactly ../../ from here.
|
|
23
|
+
const thisFile = fileURLToPath(import.meta.url);
|
|
24
|
+
const packageRoot = path.resolve(path.dirname(thisFile), "..", "..");
|
|
25
|
+
const extensions = path.join(packageRoot, "extensions");
|
|
26
|
+
if (fs.existsSync(extensions)) {
|
|
27
|
+
return { dir: extensions, source: "package-relative" };
|
|
39
28
|
}
|
|
40
|
-
return { dir: undefined,
|
|
29
|
+
return { dir: undefined, resolvedPath: extensions };
|
|
41
30
|
}
|
|
@@ -274,8 +274,8 @@ export function discoverTaskmasterPlugins(params) {
|
|
|
274
274
|
}
|
|
275
275
|
else {
|
|
276
276
|
diagnostics.push({
|
|
277
|
-
level: "
|
|
278
|
-
message: `bundled extensions dir not
|
|
277
|
+
level: "error",
|
|
278
|
+
message: `bundled extensions dir not found at ${bundled.resolvedPath ?? "unknown"}`,
|
|
279
279
|
source: "bundled-dir",
|
|
280
280
|
});
|
|
281
281
|
}
|