@cedarjs/cli 8.0.0-canary.3361 → 8.0.0-canary.3363
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/dist/commands/dev/devHandler.js +13 -1
- package/package.json +13 -13
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "8.0.0-canary.3363",
|
|
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.
|
|
40
|
-
"@cedarjs/babel-config": "8.0.0-canary.
|
|
41
|
-
"@cedarjs/cli-helpers": "8.0.0-canary.
|
|
42
|
-
"@cedarjs/internal": "8.0.0-canary.
|
|
43
|
-
"@cedarjs/prerender": "8.0.0-canary.
|
|
44
|
-
"@cedarjs/project-config": "8.0.0-canary.
|
|
45
|
-
"@cedarjs/structure": "8.0.0-canary.
|
|
46
|
-
"@cedarjs/telemetry": "8.0.0-canary.
|
|
47
|
-
"@cedarjs/utils": "8.0.0-canary.
|
|
48
|
-
"@cedarjs/vite": "8.0.0-canary.
|
|
49
|
-
"@cedarjs/web-server": "8.0.0-canary.
|
|
39
|
+
"@cedarjs/api-server": "8.0.0-canary.3363",
|
|
40
|
+
"@cedarjs/babel-config": "8.0.0-canary.3363",
|
|
41
|
+
"@cedarjs/cli-helpers": "8.0.0-canary.3363",
|
|
42
|
+
"@cedarjs/internal": "8.0.0-canary.3363",
|
|
43
|
+
"@cedarjs/prerender": "8.0.0-canary.3363",
|
|
44
|
+
"@cedarjs/project-config": "8.0.0-canary.3363",
|
|
45
|
+
"@cedarjs/structure": "8.0.0-canary.3363",
|
|
46
|
+
"@cedarjs/telemetry": "8.0.0-canary.3363",
|
|
47
|
+
"@cedarjs/utils": "8.0.0-canary.3363",
|
|
48
|
+
"@cedarjs/vite": "8.0.0-canary.3363",
|
|
49
|
+
"@cedarjs/web-server": "8.0.0-canary.3363",
|
|
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.
|
|
97
|
+
"@cedarjs/framework-tools": "8.0.0-canary.3363",
|
|
98
98
|
"@prisma/dmmf": "7.10.0",
|
|
99
99
|
"@types/archiver": "^7.0.0",
|
|
100
100
|
"memfs": "4.80.0",
|