@akanjs/devkit 0.9.33 → 0.9.34

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.
@@ -408,10 +408,11 @@ class WorkspaceExecutor extends Executor {
408
408
  const serveDomain = process.env.NEXT_PUBLIC_SERVE_DOMAIN ?? envFile.NEXT_PUBLIC_SERVE_DOMAIN;
409
409
  if (!serveDomain)
410
410
  throw new Error("NEXT_PUBLIC_SERVE_DOMAIN is not set");
411
+ const portOffset = parseInt(process.env.PORT_OFFSET ?? envFile.PORT_OFFSET ?? "0");
411
412
  const env = process.env.NEXT_PUBLIC_ENV ?? envFile.NEXT_PUBLIC_ENV ?? "debug";
412
413
  if (!env)
413
414
  throw new Error("NEXT_PUBLIC_ENV is not set");
414
- return { ...appName ? { name: appName } : {}, repoName, serveDomain, env };
415
+ return { ...appName ? { name: appName } : {}, repoName, serveDomain, env, portOffset };
415
416
  }
416
417
  async scan() {
417
418
  const [appNames, libNames, pkgNames] = await Promise.all([this.getApps(), this.getLibs(), this.getPkgs()]);
@@ -372,10 +372,11 @@ class WorkspaceExecutor extends Executor {
372
372
  const serveDomain = process.env.NEXT_PUBLIC_SERVE_DOMAIN ?? envFile.NEXT_PUBLIC_SERVE_DOMAIN;
373
373
  if (!serveDomain)
374
374
  throw new Error("NEXT_PUBLIC_SERVE_DOMAIN is not set");
375
+ const portOffset = parseInt(process.env.PORT_OFFSET ?? envFile.PORT_OFFSET ?? "0");
375
376
  const env = process.env.NEXT_PUBLIC_ENV ?? envFile.NEXT_PUBLIC_ENV ?? "debug";
376
377
  if (!env)
377
378
  throw new Error("NEXT_PUBLIC_ENV is not set");
378
- return { ...appName ? { name: appName } : {}, repoName, serveDomain, env };
379
+ return { ...appName ? { name: appName } : {}, repoName, serveDomain, env, portOffset };
379
380
  }
380
381
  async scan() {
381
382
  const [appNames, libNames, pkgNames] = await Promise.all([this.getApps(), this.getLibs(), this.getPkgs()]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "0.9.33",
3
+ "version": "0.9.34",
4
4
  "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -105,6 +105,7 @@ export declare class WorkspaceExecutor extends Executor {
105
105
  repoName: string;
106
106
  serveDomain: string;
107
107
  env: "testing" | "local" | "debug" | "develop" | "main";
108
+ portOffset: number;
108
109
  name?: string | undefined;
109
110
  };
110
111
  scan(): Promise<WorkspaceScanResult>;