uniweb 0.2.31 → 0.2.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uniweb",
3
- "version": "0.2.31",
3
+ "version": "0.2.32",
4
4
  "description": "Create structured Vite + React sites with content/code separation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -37,8 +37,8 @@
37
37
  "prompts": "^2.4.2",
38
38
  "tar": "^7.0.0",
39
39
  "@uniweb/build": "0.1.15",
40
+ "@uniweb/runtime": "0.2.8",
40
41
  "@uniweb/core": "0.1.7",
41
- "@uniweb/kit": "0.1.4",
42
- "@uniweb/runtime": "0.2.8"
42
+ "@uniweb/kit": "0.1.4"
43
43
  }
44
44
  }
@@ -11,6 +11,7 @@
11
11
  },
12
12
  "files": ["dist", "src"],
13
13
  "scripts": {
14
+ "postinstall": "node scripts/generate-entry.js",
14
15
  "dev": "vite",
15
16
  "build": "uniweb build",
16
17
  "build:vite": "vite build",
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generate Foundation Entry Point
3
+ *
4
+ * This script is called during postinstall to ensure the foundation
5
+ * entry point exists before the site dev server starts.
6
+ */
7
+
8
+ import { generateEntryPoint } from '@uniweb/build'
9
+
10
+ try {
11
+ await generateEntryPoint('./src', './src/_entry.generated.js')
12
+ } catch (err) {
13
+ // Silently fail during initial install if dependencies aren't ready
14
+ console.warn('Note: Entry generation skipped (run foundation dev/build to generate)')
15
+ }