@cedarjs/cli 5.0.0-canary.2438 → 5.0.0-canary.2442

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.
@@ -5,6 +5,7 @@ import { handler as apiServerHandler } from "@cedarjs/api-server/cjs/apiCliConfi
5
5
  import {
6
6
  getAPIHost,
7
7
  getAPIPort,
8
+ getAPIRootPath,
8
9
  getWebHost,
9
10
  getWebPort
10
11
  } from "@cedarjs/api-server/cjs/cliHelpers";
@@ -27,18 +28,19 @@ const bothServerFileHandler = async (argv) => {
27
28
  argv.apiHost ??= getAPIHost();
28
29
  argv.webPort ??= getWebPort();
29
30
  argv.webHost ??= getWebHost();
31
+ const apiRootPath = argv.apiRootPath ?? getAPIRootPath();
30
32
  const apiProxyTarget = [
31
33
  "http://",
32
34
  argv.apiHost.includes(":") ? `[${argv.apiHost}]` : argv.apiHost,
33
35
  ":",
34
36
  argv.apiPort,
35
- argv.apiRootPath
37
+ apiRootPath
36
38
  ].join("");
37
39
  const { result } = concurrently(
38
40
  [
39
41
  {
40
42
  name: "api",
41
- command: `yarn node ${path.join("dist", "server.js")} --apiPort ${argv.apiPort} --apiHost ${argv.apiHost} --apiRootPath ${argv.apiRootPath}`,
43
+ command: `yarn node ${path.join("dist", "server.js")} --apiPort ${argv.apiPort} --apiHost ${argv.apiHost} --apiRootPath ${apiRootPath}`,
42
44
  cwd: getPaths().api.base,
43
45
  prefixColor: "cyan"
44
46
  },
@@ -71,7 +73,7 @@ const bothServerFileHandler = async (argv) => {
71
73
  };
72
74
  const bothSsrRscServerHandler = async (argv, rscEnabled) => {
73
75
  const apiPromise = apiServerHandler({
74
- apiRootPath: argv.apiRootPath,
76
+ apiRootPath: argv.apiRootPath ?? getAPIRootPath(),
75
77
  host: argv.apiHost,
76
78
  port: argv.apiPort
77
79
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "5.0.0-canary.2438",
3
+ "version": "5.0.0-canary.2442",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,17 +33,17 @@
33
33
  "dependencies": {
34
34
  "@babel/parser": "7.29.3",
35
35
  "@babel/preset-typescript": "7.28.5",
36
- "@cedarjs/api-server": "5.0.0-canary.2438",
37
- "@cedarjs/cli-helpers": "5.0.0-canary.2438",
38
- "@cedarjs/fastify-web": "5.0.0-canary.2438",
39
- "@cedarjs/internal": "5.0.0-canary.2438",
40
- "@cedarjs/prerender": "5.0.0-canary.2438",
41
- "@cedarjs/project-config": "5.0.0-canary.2438",
42
- "@cedarjs/structure": "5.0.0-canary.2438",
43
- "@cedarjs/telemetry": "5.0.0-canary.2438",
44
- "@cedarjs/utils": "5.0.0-canary.2438",
45
- "@cedarjs/vite": "5.0.0-canary.2438",
46
- "@cedarjs/web-server": "5.0.0-canary.2438",
36
+ "@cedarjs/api-server": "5.0.0-canary.2442",
37
+ "@cedarjs/cli-helpers": "5.0.0-canary.2442",
38
+ "@cedarjs/fastify-web": "5.0.0-canary.2442",
39
+ "@cedarjs/internal": "5.0.0-canary.2442",
40
+ "@cedarjs/prerender": "5.0.0-canary.2442",
41
+ "@cedarjs/project-config": "5.0.0-canary.2442",
42
+ "@cedarjs/structure": "5.0.0-canary.2442",
43
+ "@cedarjs/telemetry": "5.0.0-canary.2442",
44
+ "@cedarjs/utils": "5.0.0-canary.2442",
45
+ "@cedarjs/vite": "5.0.0-canary.2442",
46
+ "@cedarjs/web-server": "5.0.0-canary.2442",
47
47
  "@listr2/prompt-adapter-enquirer": "4.2.1",
48
48
  "@opentelemetry/api": "1.9.1",
49
49
  "@opentelemetry/core": "1.30.1",