bm2 1.0.26 → 1.0.27

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": "bm2",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
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/api.ts",
6
6
  "module": "src/api.ts",
@@ -67,6 +67,8 @@ import path from "path";
67
67
  if (isCluster) {
68
68
  // In cluster mode, each instance is a separate container
69
69
  for (let i = 0; i < resolvedInstances; i++) {
70
+
71
+ options.script = path.resolve(options.script);
70
72
 
71
73
  const id = this.nextId++;
72
74
  const baseName = options.name || options.script.split("/").pop()?.replace(/\.\w+$/, "") || `app-${id}`;