@absolutejs/absolute 0.19.0-beta.663 → 0.19.0-beta.664

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/dist/cli/index.js CHANGED
@@ -2392,6 +2392,7 @@ var getServiceUrl = (service) => {
2392
2392
  }
2393
2393
  return `http://localhost:${service.port}/`;
2394
2394
  };
2395
+ var getServicePortLabel = (service) => service.port ? `:${service.port}` : "no-port";
2395
2396
  var ensureWorkspaceConfig = (config) => {
2396
2397
  if (!config.workspace?.services || Object.keys(config.workspace.services).length === 0) {
2397
2398
  throw new Error("absolute.config.ts is missing workspace.services. Add a workspace section before using `absolute workspace dev`.");
@@ -2425,7 +2426,7 @@ var waitForHealthcheck = async (name, healthcheck) => {
2425
2426
  try {
2426
2427
  const response = await fetch(resolved.url);
2427
2428
  if (response.ok) {
2428
- console.log(workspaceTag("\x1B[32m", `${name} passed healthcheck ${resolved.url}`));
2429
+ console.log(workspaceTag("\x1B[32m", `${name} ready`));
2429
2430
  return;
2430
2431
  }
2431
2432
  } catch {}
@@ -2473,12 +2474,15 @@ var createLineForwarder = (name, color, dest) => {
2473
2474
  `);
2474
2475
  buffer = lines.pop() ?? "";
2475
2476
  for (const line of lines) {
2477
+ if (line.trim().length === 0) {
2478
+ continue;
2479
+ }
2476
2480
  dest.write(`${serviceTag(name, color)} ${line}
2477
2481
  `);
2478
2482
  }
2479
2483
  },
2480
2484
  flush: () => {
2481
- if (!buffer) {
2485
+ if (!buffer || buffer.trim().length === 0) {
2482
2486
  return;
2483
2487
  }
2484
2488
  dest.write(`${serviceTag(name, color)} ${buffer}
@@ -2581,7 +2585,7 @@ var workspace = async (subcommand, options) => {
2581
2585
  process.on("SIGTERM", () => {
2582
2586
  shutdown(0);
2583
2587
  });
2584
- console.log(workspaceTag("\x1B[36m", `Starting workspace services: ${orderedNames.map((name) => {
2588
+ console.log(workspaceTag("\x1B[36m", `Services: ${orderedNames.map((name) => {
2585
2589
  const service = workspaceConfig.services[name];
2586
2590
  const visibility = service ? getVisibility(service) : "public";
2587
2591
  return visibility === "internal" ? `${name} (internal)` : `${name} (public)`;
@@ -2599,7 +2603,7 @@ var workspace = async (subcommand, options) => {
2599
2603
  if (resolved.service.kind === "absolute" && resolved.configPath && !existsSync8(resolved.configPath)) {
2600
2604
  throw new Error(`${name} references missing config "${resolved.configPath}"`);
2601
2605
  }
2602
- console.log(workspaceTag("\x1B[36m", `Starting ${name}: ${resolved.command.join(" ")}`));
2606
+ console.log(workspaceTag("\x1B[36m", `Starting ${name} (${resolved.visibility}, ${getServicePortLabel(resolved.service)})`));
2603
2607
  const processHandle = Bun.spawn(resolved.command, {
2604
2608
  cwd: resolved.cwd,
2605
2609
  env: resolved.env,
package/package.json CHANGED
@@ -302,5 +302,5 @@
302
302
  "typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
303
303
  },
304
304
  "types": "./dist/src/index.d.ts",
305
- "version": "0.19.0-beta.663"
305
+ "version": "0.19.0-beta.664"
306
306
  }