create-lumen 1.2.0-beta.1 → 1.2.0

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/README.md CHANGED
@@ -132,7 +132,6 @@ src/
132
132
  │   ├── common
133
133
  │   └── form
134
134
  ├── config # API config (when an axios/fetch client is chosen)
135
- ├── hooks
136
135
  ├── layouts
137
136
  ├── main.tsx
138
137
  ├── pages
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "create-lumen",
3
- "version": "1.2.0-beta.1",
3
+ "version": "1.2.0",
4
4
  "description": "Scaffold a React + Vite project with architecture choice: feature-based or component-based.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "create-lumen": "bin/cli.js"
8
8
  },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/LUMEN-SH/create-lumen"
12
+ },
9
13
  "files": [
10
14
  "bin/",
11
15
  "register.js",
@@ -25,6 +25,20 @@ export async function installDeps(pkgManager, dev, packages, cwd) {
25
25
  }
26
26
 
27
27
  export async function installAllDeps(responses, pkg, cwd) {
28
+ const { deps, devDeps } = computeDeps(responses);
29
+
30
+ if (deps.length > 0) {
31
+ await installDeps(pkg, false, deps, cwd);
32
+ }
33
+ if (devDeps.length > 0) {
34
+ await installDeps(pkg, true, devDeps, cwd);
35
+ }
36
+ }
37
+
38
+ // Pure dependency computation — the package list for a given matrix cell,
39
+ // independent of any package manager or filesystem. Unit-tested directly so
40
+ // the conditional wiring stays verifiable without a network install.
41
+ export function computeDeps(responses) {
28
42
  const deps = [];
29
43
  const devDeps = [];
30
44
 
@@ -107,10 +121,5 @@ export async function installAllDeps(responses, pkg, cwd) {
107
121
  // Always re-install react + react-dom for consistency
108
122
  deps.push("react", "react-dom");
109
123
 
110
- if (deps.length > 0) {
111
- await installDeps(pkg, false, deps, cwd);
112
- }
113
- if (devDeps.length > 0) {
114
- await installDeps(pkg, true, devDeps, cwd);
115
- }
124
+ return { deps, devDeps };
116
125
  }