@bullpenfi/cli 0.1.9 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bullpenfi/cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "CLI for Bullpen prediction markets",
5
5
  "bin": {
6
6
  "bullpen": "bin/bullpen"
@@ -147,6 +147,15 @@ async function main() {
147
147
  fs.copyFileSync(extractedBinary, binaryPath);
148
148
  fs.chmodSync(binaryPath, 0o755);
149
149
 
150
+ // Record install method for the auto-updater
151
+ const markerDir = path.join(os.homedir(), ".bullpen");
152
+ try {
153
+ fs.mkdirSync(markerDir, { recursive: true });
154
+ fs.writeFileSync(path.join(markerDir, "install_method"), "npm\n");
155
+ } catch (_) {
156
+ // Best-effort — don't fail install if marker can't be written
157
+ }
158
+
150
159
  console.log(`bullpen v${version} installed successfully.`);
151
160
  } catch (err) {
152
161
  console.error(`\nError installing bullpen: ${err.message}`);