@rubytech/taskmaster 1.0.17 → 1.0.19
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
|
@@ -36,7 +36,7 @@ export async function resolveGlobalPackageRoot(manager, runCommand, timeoutMs) {
|
|
|
36
36
|
const root = await resolveGlobalRoot(manager, runCommand, timeoutMs);
|
|
37
37
|
if (!root)
|
|
38
38
|
return null;
|
|
39
|
-
return path.join(root, "taskmaster");
|
|
39
|
+
return path.join(root, "@rubytech", "taskmaster");
|
|
40
40
|
}
|
|
41
41
|
export async function detectGlobalInstallManagerForRoot(runCommand, pkgRoot, timeoutMs) {
|
|
42
42
|
const pkgReal = await tryRealpath(pkgRoot);
|
|
@@ -52,13 +52,13 @@ export async function detectGlobalInstallManagerForRoot(runCommand, pkgRoot, tim
|
|
|
52
52
|
if (!globalRoot)
|
|
53
53
|
continue;
|
|
54
54
|
const globalReal = await tryRealpath(globalRoot);
|
|
55
|
-
const expected = path.join(globalReal, "taskmaster");
|
|
55
|
+
const expected = path.join(globalReal, "@rubytech", "taskmaster");
|
|
56
56
|
if (path.resolve(expected) === path.resolve(pkgReal))
|
|
57
57
|
return manager;
|
|
58
58
|
}
|
|
59
59
|
const bunGlobalRoot = resolveBunGlobalRoot();
|
|
60
60
|
const bunGlobalReal = await tryRealpath(bunGlobalRoot);
|
|
61
|
-
const bunExpected = path.join(bunGlobalReal, "taskmaster");
|
|
61
|
+
const bunExpected = path.join(bunGlobalReal, "@rubytech", "taskmaster");
|
|
62
62
|
if (path.resolve(bunExpected) === path.resolve(pkgReal))
|
|
63
63
|
return "bun";
|
|
64
64
|
return null;
|
|
@@ -68,7 +68,7 @@ export async function detectGlobalInstallManagerByPresence(runCommand, timeoutMs
|
|
|
68
68
|
const root = await resolveGlobalRoot(manager, runCommand, timeoutMs);
|
|
69
69
|
if (!root)
|
|
70
70
|
continue;
|
|
71
|
-
if (await pathExists(path.join(root, "taskmaster")))
|
|
71
|
+
if (await pathExists(path.join(root, "@rubytech", "taskmaster")))
|
|
72
72
|
return manager;
|
|
73
73
|
}
|
|
74
74
|
const bunRoot = resolveBunGlobalRoot();
|
|
@@ -114,7 +114,7 @@ async function findPackageRoot(candidates) {
|
|
|
114
114
|
try {
|
|
115
115
|
const raw = await fs.readFile(pkgPath, "utf-8");
|
|
116
116
|
const parsed = JSON.parse(raw);
|
|
117
|
-
if (parsed?.name === "taskmaster")
|
|
117
|
+
if (parsed?.name === "@rubytech/taskmaster" || parsed?.name === "taskmaster")
|
|
118
118
|
return current;
|
|
119
119
|
}
|
|
120
120
|
catch {
|
|
@@ -521,7 +521,7 @@ export async function runGatewayUpdate(opts = {}) {
|
|
|
521
521
|
const beforeVersion = await readPackageVersion(pkgRoot);
|
|
522
522
|
const globalManager = await detectGlobalInstallManagerForRoot(runCommand, pkgRoot, timeoutMs);
|
|
523
523
|
if (globalManager) {
|
|
524
|
-
const spec =
|
|
524
|
+
const spec = `@rubytech/taskmaster@${normalizeTag(opts.tag)}`;
|
|
525
525
|
const updateStep = await runStep({
|
|
526
526
|
runCommand,
|
|
527
527
|
name: "global update",
|