@vmz/vmz 0.3.1 → 0.3.2

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.
@@ -306,7 +306,11 @@ function flattenExportTarget(entry) {
306
306
  return entry;
307
307
  if (!entry || typeof entry !== 'object')
308
308
  return null;
309
- const v = entry.import || entry.default || entry.require || entry.module || null;
309
+ // Package authors commonly put browser-first TypeScript sources behind a
310
+ // conditional export. Resolve conditions before falling back to Node's
311
+ // import/default branches so the pack stage can transpile the source into
312
+ // the browser-safe vendor tree before static SSR imports it.
313
+ const v = entry.browser || entry.import || entry.default || entry.require || entry.module || entry.node || null;
310
314
  if (typeof v === 'string')
311
315
  return v;
312
316
  if (v && typeof v === 'object')
@@ -0,0 +1,27 @@
1
+ {
2
+ "schema": "vmz.host-runtime-files.v0",
3
+ "note": "Single source for Node host companions copied into dist/_vmz/host/. Consumed by vmz-compiler emit_runtime_js and materializeServeHostRuntime.",
4
+ "files": [
5
+ { "src": "host/serve-host.mjs", "out": "_vmz/host/vmz-serve-host.mjs", "rewriteVmzRuntimeImport": true },
6
+ { "src": "host/native-addon.js", "out": "_vmz/host/native-addon.js" },
7
+ { "src": "host/list-client-components.js", "out": "_vmz/host/list-client-components.js" },
8
+ { "src": "host/deployment/deployment-registry.js", "out": "_vmz/host/deployment/deployment-registry.js" },
9
+ { "src": "host/render/render-host.js", "out": "_vmz/host/render/render-host.js" },
10
+ { "src": "host/render/route-layout-chain.js", "out": "_vmz/host/render/route-layout-chain.js" },
11
+ { "src": "host/localize-body-links.js", "out": "_vmz/host/localize-body-links.js" },
12
+ { "src": "host/serve/bootstrap.js", "out": "_vmz/host/serve/bootstrap.js", "rewriteVmzRuntimeImport": true },
13
+ { "src": "host/serve/http.js", "out": "_vmz/host/serve/http.js", "rewriteVmzRuntimeImport": true },
14
+ { "src": "host/serve/hmr-dev.js", "out": "_vmz/host/serve/hmr-dev.js", "rewriteVmzRuntimeImport": true },
15
+ { "src": "host/serve/page-render.js", "out": "_vmz/host/serve/page-render.js", "rewriteVmzRuntimeImport": true },
16
+ { "src": "host/serve/page-catalog.js", "out": "_vmz/host/serve/page-catalog.js" },
17
+ { "src": "host/serve/locale-theme.js", "out": "_vmz/host/serve/locale-theme.js" },
18
+ { "src": "host/serve/constants.js", "out": "_vmz/host/serve/constants.js" },
19
+ { "src": "host/serve/route-catalog.js", "out": "_vmz/host/serve/route-catalog.js" },
20
+ { "src": "host/serve/state.js", "out": "_vmz/host/serve/state.js" },
21
+ { "src": "host/serve/paths.js", "out": "_vmz/host/serve/paths.js" }
22
+ ],
23
+ "launcherStub": {
24
+ "out": "vmz-serve-host.mjs",
25
+ "body": "// Generated launcher — host companions live under `_vmz/host/` (0.1.31).\nimport './_vmz/host/vmz-serve-host.mjs';\n"
26
+ }
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vmz/vmz",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "description": "VMZ Node toolchain — N-API workspace session + CLI (publish name @vmz/vmz)",
6
6
  "license": "MIT",
@@ -48,16 +48,16 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
- "@vmz/commander": "0.3.1",
52
- "@vmz/core": "0.3.1",
53
- "@vmz/diagnostic": "0.3.1",
54
- "@vmz/plugin": "0.3.1",
55
- "@vmz/protocol": "0.3.1",
51
+ "@vmz/commander": "0.3.2",
52
+ "@vmz/core": "0.3.2",
53
+ "@vmz/diagnostic": "0.3.2",
54
+ "@vmz/plugin": "0.3.2",
55
+ "@vmz/protocol": "0.3.2",
56
56
  "jiti": "^2.6.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@vmz/plugin-markdown-it": "0.3.1",
60
- "@vmz/test": "0.3.1",
59
+ "@vmz/plugin-markdown-it": "0.3.2",
60
+ "@vmz/test": "0.3.2",
61
61
  "typescript": "^5.8.3"
62
62
  },
63
63
  "peerDependenciesMeta": {
@@ -75,6 +75,7 @@
75
75
  "bin",
76
76
  "dist",
77
77
  "locales",
78
+ "host-runtime-files.json",
78
79
  "README.md"
79
80
  ],
80
81
  "scripts": {
@@ -96,12 +97,12 @@
96
97
  "cli"
97
98
  ],
98
99
  "optionalDependencies": {
99
- "@vmz/vmz-win32-x64": "0.3.1",
100
- "@vmz/vmz-win32-arm64": "0.3.1",
101
- "@vmz/vmz-darwin-x64": "0.3.1",
102
- "@vmz/vmz-darwin-arm64": "0.3.1",
103
- "@vmz/vmz-linux-x64": "0.3.1",
104
- "@vmz/vmz-linux-arm64": "0.3.1"
100
+ "@vmz/vmz-win32-x64": "0.3.2",
101
+ "@vmz/vmz-win32-arm64": "0.3.2",
102
+ "@vmz/vmz-darwin-x64": "0.3.2",
103
+ "@vmz/vmz-darwin-arm64": "0.3.2",
104
+ "@vmz/vmz-linux-x64": "0.3.2",
105
+ "@vmz/vmz-linux-arm64": "0.3.2"
105
106
  },
106
107
  "repository": {
107
108
  "type": "git",