@cedarjs/cli 8.0.0-canary.3362 → 8.0.0-canary.3364

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.
@@ -185,21 +185,33 @@ const handler = async ({
185
185
  const rootPackageJson = JSON.parse(
186
186
  fs.readFileSync(rootPackageJsonPath, "utf8")
187
187
  );
188
+ const warnUdFallback = (reason) => {
189
+ console.warn(
190
+ c.warning(
191
+ `--ud has no effect: ${reason}. Falling back to classic dev-server mode.`
192
+ )
193
+ );
194
+ };
188
195
  const buildUnifiedDevCommand = () => {
189
196
  if (!ud) {
190
197
  return null;
191
198
  }
192
199
  if (streamingSsrEnabled) {
200
+ warnUdFallback("streaming SSR uses its own dev server");
193
201
  return null;
194
202
  }
195
203
  if (!workspace.includes("api") || !workspace.includes("web")) {
204
+ warnUdFallback("the unified dev server needs both the api and web sides");
196
205
  return null;
197
206
  }
198
207
  if (serverFile) {
208
+ warnUdFallback(
209
+ "the unified dev server does not support a custom server file"
210
+ );
199
211
  return null;
200
212
  }
201
213
  if (!fs.existsSync(cedarPaths.api.src) || !fs.existsSync(cedarPaths.web.src)) {
202
- console.log("api.src or web.src does not exist");
214
+ warnUdFallback("api.src or web.src does not exist");
203
215
  return null;
204
216
  }
205
217
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "8.0.0-canary.3362",
3
+ "version": "8.0.0-canary.3364",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,17 +36,17 @@
36
36
  "@babel/preset-typescript": "7.29.7",
37
37
  "@babel/traverse": "7.29.8",
38
38
  "@babel/types": "7.29.8",
39
- "@cedarjs/api-server": "8.0.0-canary.3362",
40
- "@cedarjs/babel-config": "8.0.0-canary.3362",
41
- "@cedarjs/cli-helpers": "8.0.0-canary.3362",
42
- "@cedarjs/internal": "8.0.0-canary.3362",
43
- "@cedarjs/prerender": "8.0.0-canary.3362",
44
- "@cedarjs/project-config": "8.0.0-canary.3362",
45
- "@cedarjs/structure": "8.0.0-canary.3362",
46
- "@cedarjs/telemetry": "8.0.0-canary.3362",
47
- "@cedarjs/utils": "8.0.0-canary.3362",
48
- "@cedarjs/vite": "8.0.0-canary.3362",
49
- "@cedarjs/web-server": "8.0.0-canary.3362",
39
+ "@cedarjs/api-server": "8.0.0-canary.3364",
40
+ "@cedarjs/babel-config": "8.0.0-canary.3364",
41
+ "@cedarjs/cli-helpers": "8.0.0-canary.3364",
42
+ "@cedarjs/internal": "8.0.0-canary.3364",
43
+ "@cedarjs/prerender": "8.0.0-canary.3364",
44
+ "@cedarjs/project-config": "8.0.0-canary.3364",
45
+ "@cedarjs/structure": "8.0.0-canary.3364",
46
+ "@cedarjs/telemetry": "8.0.0-canary.3364",
47
+ "@cedarjs/utils": "8.0.0-canary.3364",
48
+ "@cedarjs/vite": "8.0.0-canary.3364",
49
+ "@cedarjs/web-server": "8.0.0-canary.3364",
50
50
  "@listr2/prompt-adapter-enquirer": "4.3.3",
51
51
  "@opentelemetry/api": "1.9.1",
52
52
  "@opentelemetry/core": "2.12.0",
@@ -94,7 +94,7 @@
94
94
  "yargs": "17.7.3"
95
95
  },
96
96
  "devDependencies": {
97
- "@cedarjs/framework-tools": "8.0.0-canary.3362",
97
+ "@cedarjs/framework-tools": "8.0.0-canary.3364",
98
98
  "@prisma/dmmf": "7.10.0",
99
99
  "@types/archiver": "^7.0.0",
100
100
  "memfs": "4.80.0",