uniweb 0.2.20 → 0.2.22

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.20",
3
+ "version": "0.2.22",
4
4
  "description": "Create structured Vite + React sites with content/code separation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -36,6 +36,9 @@
36
36
  "js-yaml": "^4.1.0",
37
37
  "prompts": "^2.4.2",
38
38
  "tar": "^7.0.0",
39
- "@uniweb/build": "0.1.9"
39
+ "@uniweb/core": "0.1.6",
40
+ "@uniweb/build": "0.1.9",
41
+ "@uniweb/runtime": "0.2.3",
42
+ "@uniweb/kit": "0.1.4"
40
43
  }
41
44
  }
@@ -172,8 +172,8 @@ async function processFile(sourcePath, targetPath, data, options = {}) {
172
172
  }
173
173
 
174
174
  await fs.writeFile(targetPath, content)
175
- } else if (isTextFile && options.processAllText) {
176
- // Optionally process non-hbs text files for simple replacements
175
+ } else if (isTextFile) {
176
+ // Process text files for simple variable replacements
177
177
  let content = await fs.readFile(sourcePath, 'utf8')
178
178
  // Simple {{var}} replacement without full Handlebars
179
179
  for (const [key, value] of Object.entries(data)) {
package/src/versions.js CHANGED
@@ -63,17 +63,15 @@ export function getResolvedVersions() {
63
63
  const pkg = getCliPackageJson()
64
64
  const deps = { ...pkg.dependencies, ...pkg.devDependencies }
65
65
 
66
+ // All @uniweb/* packages are now direct dependencies of the CLI.
67
+ // When publishing with pnpm, workspace:* gets resolved to actual versions.
68
+ // Fallbacks are only used during local development.
66
69
  resolvedVersions = {
67
- // Direct CLI dependencies - use fallbacks for workspace:* versions
68
- '@uniweb/build': resolveVersionSpec(deps['@uniweb/build'], '^0.1.4'),
69
- '@uniweb/templates': resolveVersionSpec(deps['@uniweb/templates'], '^0.1.6'),
70
-
71
- // These come from @uniweb/build's dependencies, use compatible versions
72
- '@uniweb/runtime': '^0.1.0',
73
- '@uniweb/core': '^0.1.0',
74
-
75
- // Foundation utility library (used by official templates)
76
- '@uniweb/kit': '^0.1.0',
70
+ '@uniweb/build': resolveVersionSpec(deps['@uniweb/build'], '^0.1.0'),
71
+ '@uniweb/core': resolveVersionSpec(deps['@uniweb/core'], '^0.1.0'),
72
+ '@uniweb/kit': resolveVersionSpec(deps['@uniweb/kit'], '^0.1.0'),
73
+ '@uniweb/runtime': resolveVersionSpec(deps['@uniweb/runtime'], '^0.1.0'),
74
+ '@uniweb/templates': resolveVersionSpec(deps['@uniweb/templates'], '^0.1.0'),
77
75
 
78
76
  // CLI itself (use current version)
79
77
  'uniweb': `^${pkg.version}`,
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@tailwindcss/vite": "^4.0.0",
29
+ "@uniweb/build": "{{version "@uniweb/build"}}",
29
30
  "@vitejs/plugin-react": "^5.0.0",
30
31
  "react": "^18.2.0",
31
32
  "react-dom": "^18.2.0",
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@tailwindcss/vite": "^4.0.0",
29
+ "@uniweb/build": "{{version "@uniweb/build"}}",
29
30
  "@vitejs/plugin-react": "^5.0.0",
30
31
  "react": "^18.2.0",
31
32
  "react-dom": "^18.2.0",
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@tailwindcss/vite": "^4.0.0",
29
+ "@uniweb/build": "{{version "@uniweb/build"}}",
29
30
  "@vitejs/plugin-react": "^5.0.0",
30
31
  "react": "^18.2.0",
31
32
  "react-dom": "^18.2.0",