@cedarjs/cli 5.0.0-canary.13875 → 5.0.0-canary.13876
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/prerenderHandler.js +21 -17
- package/package.json +12 -12
|
@@ -151,24 +151,28 @@ const getTasks = async (dryrun, routerPathFilter = null) => {
|
|
|
151
151
|
}
|
|
152
152
|
];
|
|
153
153
|
}
|
|
154
|
-
return routesToPrerender.flatMap(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
const outputHtmlPath = mapRouterPathToHtml(routeToPrerender.path);
|
|
159
|
-
return {
|
|
160
|
-
title: `Prerendering ${routeToPrerender.path} -> ${outputHtmlPath}`,
|
|
161
|
-
task: async () => {
|
|
162
|
-
await prerenderRoute(
|
|
163
|
-
prerenderer,
|
|
164
|
-
queryCache,
|
|
165
|
-
routeToPrerender,
|
|
166
|
-
dryrun,
|
|
167
|
-
outputHtmlPath
|
|
168
|
-
);
|
|
154
|
+
return routesToPrerender.flatMap(
|
|
155
|
+
(routeToPrerender) => {
|
|
156
|
+
if (routerPathFilter && routeToPrerender.path !== routerPathFilter) {
|
|
157
|
+
return [];
|
|
169
158
|
}
|
|
170
|
-
|
|
171
|
-
|
|
159
|
+
const outputHtmlPath = mapRouterPathToHtml(routeToPrerender.path);
|
|
160
|
+
return [
|
|
161
|
+
{
|
|
162
|
+
title: `Prerendering ${routeToPrerender.path} -> ${outputHtmlPath}`,
|
|
163
|
+
task: async () => {
|
|
164
|
+
await prerenderRoute(
|
|
165
|
+
prerenderer,
|
|
166
|
+
queryCache,
|
|
167
|
+
routeToPrerender,
|
|
168
|
+
dryrun,
|
|
169
|
+
outputHtmlPath
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
];
|
|
174
|
+
}
|
|
175
|
+
);
|
|
172
176
|
});
|
|
173
177
|
return listrTasks;
|
|
174
178
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.13876+3439404b69",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/parser": "7.29.2",
|
|
35
35
|
"@babel/preset-typescript": "7.28.5",
|
|
36
|
-
"@cedarjs/api-server": "5.0.0-canary.
|
|
37
|
-
"@cedarjs/cli-helpers": "5.0.0-canary.
|
|
38
|
-
"@cedarjs/fastify-web": "5.0.0-canary.
|
|
39
|
-
"@cedarjs/internal": "5.0.0-canary.
|
|
40
|
-
"@cedarjs/prerender": "5.0.0-canary.
|
|
41
|
-
"@cedarjs/project-config": "5.0.0-canary.
|
|
42
|
-
"@cedarjs/structure": "5.0.0-canary.
|
|
43
|
-
"@cedarjs/telemetry": "5.0.0-canary.
|
|
44
|
-
"@cedarjs/utils": "5.0.0-canary.
|
|
45
|
-
"@cedarjs/web-server": "5.0.0-canary.
|
|
36
|
+
"@cedarjs/api-server": "5.0.0-canary.13876",
|
|
37
|
+
"@cedarjs/cli-helpers": "5.0.0-canary.13876",
|
|
38
|
+
"@cedarjs/fastify-web": "5.0.0-canary.13876",
|
|
39
|
+
"@cedarjs/internal": "5.0.0-canary.13876",
|
|
40
|
+
"@cedarjs/prerender": "5.0.0-canary.13876",
|
|
41
|
+
"@cedarjs/project-config": "5.0.0-canary.13876",
|
|
42
|
+
"@cedarjs/structure": "5.0.0-canary.13876",
|
|
43
|
+
"@cedarjs/telemetry": "5.0.0-canary.13876",
|
|
44
|
+
"@cedarjs/utils": "5.0.0-canary.13876",
|
|
45
|
+
"@cedarjs/web-server": "5.0.0-canary.13876",
|
|
46
46
|
"@listr2/prompt-adapter-enquirer": "4.2.1",
|
|
47
47
|
"@opentelemetry/api": "1.9.0",
|
|
48
48
|
"@opentelemetry/core": "1.30.1",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"publishConfig": {
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "3439404b69a4adcb59161fe2bbb244c207afabd2"
|
|
112
112
|
}
|