@cloudwerk/cli 0.3.0 → 0.4.0
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/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2165,7 +2165,7 @@ import {
|
|
|
2165
2165
|
resolveNotFoundBoundary,
|
|
2166
2166
|
resolveLoadingBoundary
|
|
2167
2167
|
} from "@cloudwerk/core";
|
|
2168
|
-
import { render, renderStream } from "@cloudwerk/ui";
|
|
2168
|
+
import { render, renderStream, renderToStream } from "@cloudwerk/ui";
|
|
2169
2169
|
|
|
2170
2170
|
// src/server/loadHandler.ts
|
|
2171
2171
|
import * as fs from "fs";
|
|
@@ -3057,7 +3057,7 @@ async function registerRoutes(app, manifest, scanResult, logger, verbose = false
|
|
|
3057
3057
|
};
|
|
3058
3058
|
element = await Promise.resolve(Layout(layoutProps));
|
|
3059
3059
|
}
|
|
3060
|
-
return
|
|
3060
|
+
return renderToStream(element);
|
|
3061
3061
|
} catch (error) {
|
|
3062
3062
|
if (error instanceof NotFoundError) {
|
|
3063
3063
|
const notFoundPath = resolveNotFoundBoundary(route.filePath, scanResult.notFound);
|
|
@@ -3187,7 +3187,7 @@ async function registerRoutes(app, manifest, scanResult, logger, verbose = false
|
|
|
3187
3187
|
};
|
|
3188
3188
|
element = await Promise.resolve(Layout(layoutProps));
|
|
3189
3189
|
}
|
|
3190
|
-
return
|
|
3190
|
+
return renderToStream(element);
|
|
3191
3191
|
} catch (error) {
|
|
3192
3192
|
if (error instanceof NotFoundError) {
|
|
3193
3193
|
const notFoundPath = resolveNotFoundBoundary(route.filePath, scanResult.notFound);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudwerk/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Dev server, build, deploy commands for Cloudwerk",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"esbuild": "^0.25.0",
|
|
27
27
|
"picocolors": "^1.1.0",
|
|
28
28
|
"@cloudwerk/core": "^0.3.0",
|
|
29
|
-
"@cloudwerk/ui": "^0.
|
|
29
|
+
"@cloudwerk/ui": "^0.4.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^20.0.0",
|