@absolutejs/absolute 0.19.0-beta.1111 → 0.19.0-beta.1113

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
@@ -181681,6 +181681,12 @@ var resolvePackageVersion2 = () => {
181681
181681
  };
181682
181682
  var isCommandService2 = (service) => service.kind === "command" || Array.isArray(service.command);
181683
181683
  var isAbsoluteService = (service) => !isCommandService2(service);
181684
+ var resolveWorkspaceServicePort = (service, env3) => {
181685
+ const configuredPort = (service.port ?? Number(env3.PORT ?? "")) || 0;
181686
+ if (configuredPort > 0)
181687
+ return configuredPort;
181688
+ return isAbsoluteService(service) ? DEFAULT_PORT : 0;
181689
+ };
181684
181690
  var getVisibility = (service) => service.visibility ?? "public";
181685
181691
  var getServiceUrl = (service) => {
181686
181692
  if (!service.port) {
@@ -182254,7 +182260,7 @@ var workspace = async (subcommand, options) => {
182254
182260
  throw new Error(`services is missing "${name}"`);
182255
182261
  }
182256
182262
  const resolved = resolveService(name, service, workspaceEnv, options);
182257
- const port = (resolved.service.port ?? Number(resolved.env.PORT ?? "")) || DEFAULT_PORT;
182263
+ const port = resolveWorkspaceServicePort(resolved.service, resolved.env);
182258
182264
  killStaleServicePort(port);
182259
182265
  if (isAbsoluteService(resolved.service) && resolved.configPath && !existsSync9(resolved.configPath)) {
182260
182266
  throw new Error(`${name} references missing config "${resolved.configPath}"`);