@vera-ai/cli 0.9.14 → 0.9.16

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.
Files changed (2) hide show
  1. package/bin/vera.js +6 -1
  2. package/package.json +1 -1
package/bin/vera.js CHANGED
@@ -67,7 +67,12 @@ function installMetadataPath() {
67
67
  }
68
68
 
69
69
  function currentInstallMethod() {
70
- return process.versions.bun ? "bun" : "npm";
70
+ if (process.versions.bun) return "bun";
71
+ const ua = process.env.npm_config_user_agent || "";
72
+ if (ua.startsWith("bun/")) return "bun";
73
+ const execpath = process.env.npm_execpath || "";
74
+ if (execpath.includes("bun")) return "bun";
75
+ return "npm";
71
76
  }
72
77
 
73
78
  async function readInstallMetadata() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vera-ai/cli",
3
- "version": "0.9.14",
3
+ "version": "0.9.16",
4
4
  "description": "Bootstrap installer and wrapper for the Vera CLI",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/lemon07r/Vera#readme",