@@ -11,7 +11,6 @@ import {
11
11
createApp ,
12
12
createDefaultEnvironment ,
13
13
finalizeAddOns ,
14
- getFrameworkById ,
15
14
getFrameworkByName ,
16
15
getFrameworks ,
17
16
} from '@tanstack/cta-engine'
@@ -29,14 +28,18 @@ function createServer({
29
28
version : '1.0.0' ,
30
29
} )
31
30
32
- const frameworks = getFrameworks ( ) ;
33
- const frameworkNames = frameworks . map ( ( framework ) => framework . name ) ;
31
+ const frameworks = getFrameworks ( )
32
+ const frameworkNames = frameworks . map ( ( framework ) => framework . name )
34
33
35
34
server . tool (
36
35
'listTanStackAddOns' ,
37
36
'List the available add-ons for creating TanStack applications' ,
38
37
{
39
- framework : z . string ( ) . describe ( `The framework to use. Available frameworks: ${ frameworkNames . join ( ', ' ) } ` ) ,
38
+ framework : z
39
+ . string ( )
40
+ . describe (
41
+ `The framework to use. Available frameworks: ${ frameworkNames . join ( ', ' ) } ` ,
42
+ ) ,
40
43
} ,
41
44
( { framework : frameworkName } ) => {
42
45
const framework = getFrameworkByName ( frameworkName ) !
@@ -63,7 +66,11 @@ function createServer({
63
66
'createTanStackApplication' ,
64
67
'Create a new TanStack application' ,
65
68
{
66
- framework : z . string ( ) . describe ( `The framework to use. Available frameworks: ${ frameworkNames . join ( ', ' ) } ` ) ,
69
+ framework : z
70
+ . string ( )
71
+ . describe (
72
+ `The framework to use. Available frameworks: ${ frameworkNames . join ( ', ' ) } ` ,
73
+ ) ,
67
74
projectName : z
68
75
. string ( )
69
76
. describe (
@@ -77,7 +84,13 @@ function createServer({
77
84
'The directory to create the application in. Use the absolute path of the directory you want the application to be created in' ,
78
85
) ,
79
86
} ,
80
- async ( { framework :frameworkName , projectName, addOns, cwd, targetDir } ) => {
87
+ async ( {
88
+ framework : frameworkName ,
89
+ projectName,
90
+ addOns,
91
+ cwd,
92
+ targetDir,
93
+ } ) => {
81
94
const framework = getFrameworkByName ( frameworkName ) !
82
95
try {
83
96
process . chdir ( cwd )
0 commit comments