@rainbow-robotics/muscat-plugin-kit 0.1.2-dev.18 → 0.1.2-dev.21

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.
@@ -90,7 +90,7 @@ async function updateBinary(tag) {
90
90
  stdio: "ignore",
91
91
  }).unref();
92
92
 
93
- log.ok(`v${version} downloaded. Will be applied on next run.`);
93
+ log.ok(`v${version} will be applied on next run.`);
94
94
  } else {
95
95
  // macOS / Linux: can replace the file while it's mapped into memory
96
96
  const tmp = join(tmpdir(), `muscat-pk-${version}`);
@@ -248,9 +248,13 @@ export async function runUpdate(args = []) {
248
248
  const isGlobal = (() => {
249
249
  try {
250
250
  const prefix = execSync("npm prefix -g", { encoding: "utf8" }).trim();
251
- const globalBin = join(prefix, "bin", "muscat-pk");
252
- const globalBinCmd = join(prefix, "bin", "muscat-pk.cmd");
253
- return existsSync(globalBin) || existsSync(globalBinCmd);
251
+ return (
252
+ // Unix: {prefix}/bin/muscat-pk
253
+ existsSync(join(prefix, "bin", "muscat-pk")) ||
254
+ // Windows npm: {prefix}/muscat-pk.cmd (no bin/ subdir)
255
+ existsSync(join(prefix, "muscat-pk.cmd")) ||
256
+ existsSync(join(prefix, "bin", "muscat-pk.cmd"))
257
+ );
254
258
  } catch { return false; }
255
259
  })();
256
260
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainbow-robotics/muscat-plugin-kit",
3
- "version": "0.1.2-dev.18",
3
+ "version": "0.1.2-dev.21",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -31,7 +31,7 @@
31
31
  "@types/react-dom": "^19.0.4"
32
32
  },
33
33
  "dependencies": {
34
- "@rainbow-robotics/preview-host": "workspace:*",
34
+ "@rainbow-robotics/preview-host": "0.1.2-dev.21",
35
35
  "socket.io": "^4.8.1"
36
36
  },
37
37
  "optionalDependencies": {