@akanjs/devkit 0.9.33 → 0.9.35
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/cjs/src/executors.js +2 -1
- package/esm/src/executors.js +2 -1
- package/package.json +3 -3
- package/src/executors.d.ts +1 -0
package/cjs/src/executors.js
CHANGED
|
@@ -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()]);
|
package/esm/src/executors.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.9.35",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"esbuild-plugin-d.ts": "^1.3.1",
|
|
29
29
|
"eslint": "^9.19.0",
|
|
30
30
|
"form-data": "^4.0.1",
|
|
31
|
-
"ink": "^
|
|
31
|
+
"ink": "^6.1.0",
|
|
32
32
|
"js-yaml": "^4.1.0",
|
|
33
33
|
"ora": "^3.4.0",
|
|
34
|
-
"react": "
|
|
34
|
+
"react": "19.1.1",
|
|
35
35
|
"reflect-metadata": "^0.2.2",
|
|
36
36
|
"tunnel-ssh": "^5.2.0",
|
|
37
37
|
"typescript": "5.8.3"
|
package/src/executors.d.ts
CHANGED
|
@@ -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>;
|