bm2 1.0.28 → 1.0.29

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.28",
3
+ "version": "1.0.29",
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",
@@ -63,8 +63,10 @@ import path from "path";
63
63
  const isCluster = options.execMode === "cluster" || resolvedInstances > 1;
64
64
  const states: ProcessState[] = [];
65
65
 
66
- options.script = path.resolve(options.script);
67
-
66
+ options.script = path.isAbsolute(options.script)
67
+ ? options.script
68
+ : path.resolve(process.cwd(), options.script);
69
+
68
70
  if (!(await Bun.file(options.script).exists())) {
69
71
  throw new Error(`Script not found: ${options.script}`);
70
72
  }