@rainbow-robotics/muscat-plugin-kit 0.1.2-dev.19 → 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.
- package/cli/src/update.mjs +8 -5
- package/package.json +2 -2
package/cli/src/update.mjs
CHANGED
|
@@ -90,8 +90,7 @@ async function updateBinary(tag) {
|
|
|
90
90
|
stdio: "ignore",
|
|
91
91
|
}).unref();
|
|
92
92
|
|
|
93
|
-
log.ok(`v${version}
|
|
94
|
-
process.exit(0);
|
|
93
|
+
log.ok(`v${version} will be applied on next run.`);
|
|
95
94
|
} else {
|
|
96
95
|
// macOS / Linux: can replace the file while it's mapped into memory
|
|
97
96
|
const tmp = join(tmpdir(), `muscat-pk-${version}`);
|
|
@@ -249,9 +248,13 @@ export async function runUpdate(args = []) {
|
|
|
249
248
|
const isGlobal = (() => {
|
|
250
249
|
try {
|
|
251
250
|
const prefix = execSync("npm prefix -g", { encoding: "utf8" }).trim();
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
+
);
|
|
255
258
|
} catch { return false; }
|
|
256
259
|
})();
|
|
257
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.
|
|
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": "
|
|
34
|
+
"@rainbow-robotics/preview-host": "0.1.2-dev.21",
|
|
35
35
|
"socket.io": "^4.8.1"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|