@cloudwerk/cli 0.15.10 → 0.15.12

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 +4 -0
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -375,6 +375,10 @@ async function build(pathArg, options) {
375
375
  // Generate manifest.json for asset mapping
376
376
  rollupOptions: {
377
377
  input: "virtual:cloudwerk/client-entry",
378
+ // Externalize @cloudwerk/* packages from client bundle — they are server-only.
379
+ // stripServerExports removes loader/config, but residual imports (e.g., types)
380
+ // can pull in node:async_hooks via the runtime context chain.
381
+ external: [/^@cloudwerk\//],
378
382
  onwarn(warning, defaultHandler) {
379
383
  if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes('"use client"')) {
380
384
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudwerk/cli",
3
- "version": "0.15.10",
3
+ "version": "0.15.12",
4
4
  "description": "Dev server, build, deploy commands for Cloudwerk",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,10 +30,10 @@
30
30
  "esbuild": "^0.25.0",
31
31
  "picocolors": "^1.1.0",
32
32
  "wrangler": "^4.0.0",
33
- "vite": "^6.0.0",
34
- "@cloudwerk/core": "^0.15.3",
35
- "@cloudwerk/vite-plugin": "^0.8.0",
36
- "@cloudwerk/ui": "^0.15.6"
33
+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
34
+ "@cloudwerk/ui": "^0.15.6",
35
+ "@cloudwerk/vite-plugin": "^0.8.1",
36
+ "@cloudwerk/core": "^0.15.3"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^20.0.0",