wmdev 0.2.3 → 0.4.0

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/bin/wmdev.js CHANGED
@@ -19,14 +19,14 @@ Usage:
19
19
  wmdev --help Show this help message
20
20
 
21
21
  Environment:
22
- DASHBOARD_PORT Same as --port (flag takes precedence)
22
+ BACKEND_PORT Same as --port (flag takes precedence)
23
23
  `);
24
24
  }
25
25
 
26
26
  // ── Parse args ───────────────────────────────────────────────────────────────
27
27
 
28
28
  const args = process.argv.slice(2);
29
- let port = parseInt(process.env.DASHBOARD_PORT || "5111");
29
+ let port = parseInt(process.env.BACKEND_PORT || "5111");
30
30
  let debug = false;
31
31
 
32
32
  for (let i = 0; i < args.length; i++) {
@@ -75,7 +75,7 @@ await loadEnvFile(resolve(process.cwd(), ".env"));
75
75
 
76
76
  // ── Shared env for child processes ───────────────────────────────────────────
77
77
 
78
- const baseEnv = { ...process.env, DASHBOARD_PORT: String(port), WMDEV_PROJECT_DIR: process.cwd(), ...(debug ? { WMDEV_DEBUG: "1" } : {}) };
78
+ const baseEnv = { ...process.env, BACKEND_PORT: String(port), WMDEV_PROJECT_DIR: process.cwd(), ...(debug ? { WMDEV_DEBUG: "1" } : {}) };
79
79
 
80
80
  // ── Prefixed output ──────────────────────────────────────────────────────────
81
81