@bullpenfi/cli 0.1.9 → 0.1.11
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 +1 -1
- package/scripts/postinstall.js +9 -0
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -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}`);
|