@circlesac/vlt-cli 26.6.0 → 26.6.1

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/bin/install.js CHANGED
@@ -34,7 +34,12 @@ function download(url) {
34
34
  });
35
35
  }
36
36
 
37
- if (process.env.CI) process.exit(0);
37
+ // Only download when installed as a published package (always lives inside a
38
+ // node_modules tree, including npm -g). A repo checkout — local dev or the
39
+ // release workflow itself, where oneup may already have stamped a version —
40
+ // must never try to fetch its own not-yet-published release.
41
+ const isPublishedInstall = __dirname.split(path.sep).includes("node_modules");
42
+ if (!isPublishedInstall || !version) process.exit(0);
38
43
 
39
44
  const platform = `${process.platform}-${process.arch}`;
40
45
  const info = PLATFORMS[platform];
package/bin/vlt.mjs CHANGED
@@ -11,5 +11,9 @@ const bin = path.join(__dirname, "native", `vlt${ext}`);
11
11
  if (!existsSync(bin)) {
12
12
  await import("./install.js");
13
13
  }
14
+ if (!existsSync(bin)) {
15
+ console.error("[ERROR] vlt native binary is not installed (download failed or unsupported platform)");
16
+ process.exit(1);
17
+ }
14
18
  const result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
15
19
  process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -25,5 +25,5 @@
25
25
  "test": "bun test src/"
26
26
  },
27
27
  "type": "module",
28
- "version": "26.6.0"
28
+ "version": "26.6.1"
29
29
  }