@uniweb/build 0.2.2 → 0.2.3

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/build",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Build tooling for the Uniweb Component Web Platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -60,7 +60,7 @@
60
60
  "@tailwindcss/vite": "^4.0.0",
61
61
  "@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
62
62
  "vite-plugin-svgr": "^4.0.0",
63
- "@uniweb/core": "0.2.2"
63
+ "@uniweb/core": "0.2.3"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "vite": {
@@ -592,9 +592,12 @@ function determineIndexPage(orderConfig, availableFolders) {
592
592
  }
593
593
 
594
594
  // 3. Fallback: lowest order value, or first alphabetically
595
- if (availableFolders.length === 0) return null
595
+ // IMPORTANT: Dynamic route folders (e.g., [slug]) can never be index pages
596
+ // They are templates for dynamic content, not actual navigable pages
597
+ const staticFolders = availableFolders.filter(f => !isDynamicRoute(f.name))
598
+ if (staticFolders.length === 0) return null
596
599
 
597
- const sorted = [...availableFolders].sort((a, b) => {
600
+ const sorted = [...staticFolders].sort((a, b) => {
598
601
  // Sort by order (lower first), then alphabetically
599
602
  const orderA = a.order ?? 999
600
603
  const orderB = b.order ?? 999