bm2 1.0.15 → 1.0.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.
- package/package.json +1 -1
- package/src/index.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bm2",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "A blazing-fast, full-featured process manager built entirely on Bun native APIs. The modern PM2 replacement — zero Node.js dependencies, pure Bun performance.",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"module": "src/index.ts",
|
package/src/index.ts
CHANGED
|
@@ -84,10 +84,12 @@ async function startDaemon(): Promise<void> {
|
|
|
84
84
|
// Detach so the daemon outlives the CLI
|
|
85
85
|
child.unref();
|
|
86
86
|
|
|
87
|
+
console.error(colorize("Waiting for daemon..", "green"));
|
|
88
|
+
|
|
87
89
|
// Wait for socket to appear
|
|
88
|
-
for (let i = 0; i <
|
|
90
|
+
for (let i = 0; i < 100; i++) {
|
|
89
91
|
if (existsSync(DAEMON_SOCKET)) return;
|
|
90
|
-
await Bun.sleep(
|
|
92
|
+
await Bun.sleep(500);
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
throw new Error("Daemon failed to start (socket not found after 5 s)");
|