@cloudwerk/cli 0.8.0 → 0.9.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -323,6 +323,7 @@ async function build(pathArg, options) {
323
323
  verbose,
324
324
  hydrationEndpoint: "/__cloudwerk",
325
325
  renderer,
326
+ publicDir: cloudwerkConfig.publicDir ?? "public",
326
327
  root: cwd
327
328
  });
328
329
  const tempEntryPath = path2.join(tempDir, "_server-entry.ts");
@@ -364,6 +365,8 @@ async function build(pathArg, options) {
364
365
  root: cwd,
365
366
  mode: "production",
366
367
  logLevel: verbose ? "info" : "warn",
368
+ // Disable publicDir for server build - static assets are already in dist/static/ from client build
369
+ publicDir: false,
367
370
  plugins: [
368
371
  cloudwerk2({ verbose })
369
372
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudwerk/cli",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Dev server, build, deploy commands for Cloudwerk",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,9 +28,9 @@
28
28
  "esbuild": "^0.25.0",
29
29
  "picocolors": "^1.1.0",
30
30
  "vite": "^6.0.0",
31
- "@cloudwerk/core": "^0.8.0",
32
- "@cloudwerk/ui": "^0.8.0",
33
- "@cloudwerk/vite-plugin": "^0.2.0"
31
+ "@cloudwerk/core": "^0.9.0",
32
+ "@cloudwerk/ui": "^0.9.0",
33
+ "@cloudwerk/vite-plugin": "^0.3.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^20.0.0",