@uniweb/build 1.13.7 → 1.13.8

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": "1.13.7",
3
+ "version": "1.13.8",
4
4
  "description": "Build tooling for the Uniweb Component Web Platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -56,12 +56,12 @@
56
56
  "js-yaml": "^4.3.2",
57
57
  "sharp": "^0.35.5",
58
58
  "yaml": "^2.5.0",
59
- "@uniweb/semantic-parser": "~1.13.0",
60
- "@uniweb/projections": "~1.2.9",
61
59
  "@uniweb/content-reader": "~1.5.7",
62
60
  "@uniweb/content-writer": "~1.3.1",
63
- "@uniweb/theming": "~1.2.1",
64
- "@uniweb/schemas": "~1.6.7"
61
+ "@uniweb/projections": "~1.2.9",
62
+ "@uniweb/semantic-parser": "~1.13.0",
63
+ "@uniweb/schemas": "~1.6.7",
64
+ "@uniweb/theming": "~1.2.1"
65
65
  },
66
66
  "optionalDependencies": {
67
67
  "@uniweb/runtime": "~1.3.5"
@@ -73,8 +73,8 @@
73
73
  "@tailwindcss/vite": "^4.0.0",
74
74
  "@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
75
75
  "vite-plugin-svgr": "^4.0.0",
76
- "@uniweb/runtime": "~1.3.5",
77
- "@uniweb/core": "~1.5.1"
76
+ "@uniweb/core": "~1.5.1",
77
+ "@uniweb/runtime": "~1.3.5"
78
78
  },
79
79
  "peerDependenciesMeta": {
80
80
  "vite": {
@@ -162,13 +162,13 @@ function generateEntrySource(components, options = {}) {
162
162
  // Component imports
163
163
  for (const name of componentNames) {
164
164
  const { path, entryFile = `index.js` } = components[name]
165
- lines.push(`import ${name} from './${path}/${entryFile}'`)
165
+ lines.push(`import ${name} from './${toPosix(path)}/${entryFile}'`)
166
166
  }
167
167
 
168
168
  // Layout imports
169
169
  for (const name of layoutNames) {
170
170
  const { path, entryFile = `index.js` } = layouts[name]
171
- lines.push(`import ${name} from './${path}/${entryFile}'`)
171
+ lines.push(`import ${name} from './${toPosix(path)}/${entryFile}'`)
172
172
  }
173
173
 
174
174
  lines.push('')
@@ -388,7 +388,10 @@ export async function generateEntryPoint(srcDir, outputPath = null, options = {}
388
388
  }
389
389
  }
390
390
 
391
- /** Normalize native path separators so matching is platform-independent. */
391
+ /**
392
+ * Normalize native path separators, so matching is platform-independent and a path written into
393
+ * generated JavaScript is one: in a string, the `\A` of `sections\Abstract` is just `A`.
394
+ */
392
395
  const toPosix = path => path.replace(/\\/g, '/')
393
396
 
394
397
  /**