pragma-so 0.1.8 → 0.1.9

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/cli/index.js +4 -10
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -442,16 +442,10 @@ async function getRandomFreePort() {
442
442
  });
443
443
  }
444
444
  async function runAll() {
445
- const hasApiOverride = !!process.env.PRAGMA_API_URL;
446
- const hasUiOverride = !!process.env.PRAGMA_UI_URL;
447
- const serverPort = hasApiOverride
448
- ? parsePort(new URL(DEFAULT_API_URL).port || "3000")
449
- : await getRandomFreePort();
450
- const uiPort = hasUiOverride
451
- ? parsePort(new URL(DEFAULT_UI_URL).port || "5173")
452
- : await getRandomFreePort();
453
- const apiUrl = hasApiOverride ? DEFAULT_API_URL : `http://127.0.0.1:${serverPort}`;
454
- const uiUrl = hasUiOverride ? DEFAULT_UI_URL : `http://127.0.0.1:${uiPort}`;
445
+ const apiUrl = DEFAULT_API_URL;
446
+ const uiUrl = DEFAULT_UI_URL;
447
+ const serverPort = parsePort(new URL(apiUrl).port || "3000");
448
+ const uiPort = parsePort(new URL(uiUrl).port || "5173");
455
449
  const serverProcess = spawnSelfCommand(["server", "--port", String(serverPort)]);
456
450
  const serverExit = waitForExit(serverProcess, "server");
457
451
  await waitForHealth(apiUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pragma-so",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Very minimal pragma-so CLI",
5
5
  "main": "dist/cli/index.js",
6
6
  "bin": {