@kelceyp/caw 1.0.8 → 1.0.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.
Files changed (2) hide show
  1. package/dist/caw.js +8 -5
  2. package/package.json +1 -1
package/dist/caw.js CHANGED
@@ -10749,12 +10749,15 @@ function createPm2Manager(envDir, checkPm2 = isPm2Installed) {
10749
10749
  if (!checkPm2())
10750
10750
  return { running: false, pid: null };
10751
10751
  try {
10752
- const output = pm2Exec(`describe ${name} --json`);
10753
- const descriptions = JSON.parse(output);
10754
- if (!Array.isArray(descriptions) || descriptions.length === 0) {
10752
+ const output = pm2Exec("jlist");
10753
+ const processes = JSON.parse(output);
10754
+ if (!Array.isArray(processes)) {
10755
+ return { running: false, pid: null };
10756
+ }
10757
+ const proc = processes.find((p) => p.name === name);
10758
+ if (!proc) {
10755
10759
  return { running: false, pid: null };
10756
10760
  }
10757
- const proc = descriptions[0];
10758
10761
  const status = proc.pm2_env?.status;
10759
10762
  const pid = proc.pid;
10760
10763
  return {
@@ -11621,6 +11624,6 @@ if (!globalCheck.ok) {
11621
11624
  console.error(globalCheck.message);
11622
11625
  process.exit(1);
11623
11626
  }
11624
- var LAUNCHER_VERSION = "1.0.8";
11627
+ var LAUNCHER_VERSION = "1.0.10";
11625
11628
  var app = create().name("caw").version(LAUNCHER_VERSION).command(start_default.create()).command(stop_default.create()).command(status_default.create()).command(logs_default.create()).command(upgrade_default.create());
11626
11629
  await app.run(process.argv.slice(2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kelceyp/caw",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "CAW launcher — server lifecycle management CLI",
5
5
  "type": "module",
6
6
  "bin": {