@absolutejs/absolute 0.19.0-beta.1112 → 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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-j6kTJ1/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-GMMc0X/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-j6kTJ1/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-GMMc0X/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-j6kTJ1/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-GMMc0X/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
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}"`);
@@ -1,8 +1,9 @@
1
- import type { WorkspaceConfig } from '../../../types/build';
1
+ import type { ServiceConfig, WorkspaceConfig } from '../../../types/build';
2
2
  type WorkspaceDevOptions = {
3
3
  configPath?: string;
4
4
  noTui?: boolean;
5
5
  };
6
+ export declare const resolveWorkspaceServicePort: (service: ServiceConfig, env: Record<string, string>) => number;
6
7
  export declare const findSharedWorkspaceBuildDirectories: (services: WorkspaceConfig) => {
7
8
  buildDirectory: string;
8
9
  names: string[];
package/package.json CHANGED
@@ -427,7 +427,7 @@
427
427
  ]
428
428
  }
429
429
  },
430
- "version": "0.19.0-beta.1112",
430
+ "version": "0.19.0-beta.1113",
431
431
  "workspaces": [
432
432
  "tests/fixtures/*",
433
433
  "tests/fixtures/_packages/*"