@tanstack/cta-cli 0.15.8 → 0.15.10
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/dist/cli.js +2 -2
- package/package.json +3 -3
- package/src/cli.ts +2 -2
package/dist/cli.js
CHANGED
|
@@ -119,7 +119,7 @@ export function cli({ name, appName, forcedMode, forcedAddOns = [], defaultTempl
|
|
|
119
119
|
throw new InvalidArgumentError(`Invalid framework: ${value}. Only the following are allowed: ${availableFrameworks.join(', ')}`);
|
|
120
120
|
}
|
|
121
121
|
return value;
|
|
122
|
-
}, defaultFramework || '
|
|
122
|
+
}, defaultFramework || 'React');
|
|
123
123
|
}
|
|
124
124
|
program
|
|
125
125
|
.option('--starter [url]', 'initialize this project from a starter URL', false)
|
|
@@ -174,7 +174,7 @@ export function cli({ name, appName, forcedMode, forcedAddOns = [], defaultTempl
|
|
|
174
174
|
projectName,
|
|
175
175
|
...options,
|
|
176
176
|
};
|
|
177
|
-
cliOptions.framework = getFrameworkByName(options.framework || defaultFramework || '
|
|
177
|
+
cliOptions.framework = getFrameworkByName(options.framework || defaultFramework || 'React').id;
|
|
178
178
|
if (defaultMode) {
|
|
179
179
|
cliOptions.template = defaultMode;
|
|
180
180
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/cta-cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.10",
|
|
4
4
|
"description": "Tanstack Application Builder CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"commander": "^13.1.0",
|
|
30
30
|
"express": "^4.21.2",
|
|
31
31
|
"zod": "^3.24.2",
|
|
32
|
-
"@tanstack/cta-
|
|
33
|
-
"@tanstack/cta-
|
|
32
|
+
"@tanstack/cta-ui": "0.15.7",
|
|
33
|
+
"@tanstack/cta-engine": "0.15.7"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@tanstack/config": "^0.16.2",
|
package/src/cli.ts
CHANGED
|
@@ -191,7 +191,7 @@ export function cli({
|
|
|
191
191
|
}
|
|
192
192
|
return value
|
|
193
193
|
},
|
|
194
|
-
defaultFramework || '
|
|
194
|
+
defaultFramework || 'React',
|
|
195
195
|
)
|
|
196
196
|
}
|
|
197
197
|
|
|
@@ -281,7 +281,7 @@ export function cli({
|
|
|
281
281
|
} as CliOptions
|
|
282
282
|
|
|
283
283
|
cliOptions.framework = getFrameworkByName(
|
|
284
|
-
options.framework || defaultFramework || '
|
|
284
|
+
options.framework || defaultFramework || 'React',
|
|
285
285
|
)!.id
|
|
286
286
|
|
|
287
287
|
if (defaultMode) {
|