@task-handoff/node-agent 0.0.3-alpha.4 → 0.0.3-alpha.5

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.
@@ -36,9 +36,10 @@ try {
36
36
  const prefixResult = spawnSync(npmCommand, ["prefix", "--global"], { encoding: "utf8" });
37
37
  if (prefixResult.status !== 0) throw new Error("Could not determine the npm global prefix.");
38
38
  const prefix = prefixResult.stdout.trim();
39
- const serverUpdater = path.join(prefix, "bin", "task-handoff-server");
40
- if (fs.existsSync(serverUpdater)) {
41
- run(serverUpdater, ["update", "--to", targetVersion]);
39
+ const taskHandoff = path.join(prefix, "bin", "task-handoff");
40
+ const serverPackage = path.join(prefix, "lib", "node_modules", "@task-handoff", "server", "package.json");
41
+ if (fs.existsSync(taskHandoff) && fs.existsSync(serverPackage)) {
42
+ run(taskHandoff, ["update", "--to", targetVersion]);
42
43
  } else {
43
44
  run(npmCommand, [
44
45
  "install",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@task-handoff/node-agent",
3
- "version": "0.0.3-alpha.4",
3
+ "version": "0.0.3-alpha.5",
4
4
  "description": "Prebuilt TaskHandoff node agent runtime.",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",