@absolutejs/absolute 0.19.0-beta.1112 → 0.19.0-beta.1114

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}"`);
package/dist/index.js CHANGED
@@ -38084,7 +38084,7 @@ var toSafeFileName6 = (specifier) => {
38084
38084
  } catch {
38085
38085
  return false;
38086
38086
  }
38087
- }, isBareSpecifier2 = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAbsolutePackageSpecifier = (spec) => spec === "@absolutejs/absolute" || spec.startsWith("@absolutejs/absolute/"), FRAMEWORK_SPECIFIERS, FRAMEWORK_NAMESPACE_PREFIXES, isFrameworkSpecifier = (spec) => FRAMEWORK_SPECIFIERS.has(spec) || FRAMEWORK_NAMESPACE_PREFIXES.some((prefix) => spec.startsWith(prefix)), FRAMEWORK_EXTERNALS, isSkippedFile = (file5) => file5.includes("node_modules") || file5.includes("/build/") || file5.includes("/dist/") || file5.includes("/indexes/"), isDepSpecifier = (path) => isBareSpecifier2(path) && !isBuiltin(path) && !isFrameworkSpecifier(path) && !isAbsolutePackageSpecifier(path), isFrameworkRootCandidate = (path) => isBareSpecifier2(path) && isFrameworkSpecifier(path) && !isAbsolutePackageSpecifier(path), readFileSpecifiers = async (file5, transpiler6) => {
38087
+ }, isBareSpecifier2 = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAbsolutePackageSpecifier = (spec) => spec === "@absolutejs/absolute" || spec.startsWith("@absolutejs/absolute/"), FRAMEWORK_SPECIFIERS, FRAMEWORK_NAMESPACE_PREFIXES, isFrameworkSpecifier = (spec) => FRAMEWORK_SPECIFIERS.has(spec) || FRAMEWORK_NAMESPACE_PREFIXES.some((prefix) => spec.startsWith(prefix)), FRAMEWORK_EXTERNALS, isSkippedFile = (file5) => file5.includes("node_modules") || file5.includes("/build/") || file5.includes("/dist/") || file5.includes("/indexes/") || file5.includes("/__tests__/") || /\.(?:test|spec)\.[cm]?[jt]sx?$/.test(file5), isDepSpecifier = (path) => isBareSpecifier2(path) && !isBuiltin(path) && !isFrameworkSpecifier(path) && !isAbsolutePackageSpecifier(path), isFrameworkRootCandidate = (path) => isBareSpecifier2(path) && isFrameworkSpecifier(path) && !isAbsolutePackageSpecifier(path), readFileSpecifiers = async (file5, transpiler6) => {
38088
38088
  const dep = [];
38089
38089
  const framework = [];
38090
38090
  try {
@@ -47804,5 +47804,5 @@ export {
47804
47804
  ANGULAR_INIT_TIMEOUT_MS
47805
47805
  };
47806
47806
 
47807
- //# debugId=DD309525FF404DBE64756E2164756E21
47807
+ //# debugId=8EFDC73D84A9702964756E2164756E21
47808
47808
  //# sourceMappingURL=index.js.map