@@ -11,7 +11,6 @@ import {
1111 createApp ,
1212 createDefaultEnvironment ,
1313 finalizeAddOns ,
14- getFrameworkById ,
1514 getFrameworkByName ,
1615 getFrameworks ,
1716} from '@tanstack/cta-engine'
@@ -29,14 +28,18 @@ function createServer({
2928 version : '1.0.0' ,
3029 } )
3130
32- const frameworks = getFrameworks ( ) ;
33- const frameworkNames = frameworks . map ( ( framework ) => framework . name ) ;
31+ const frameworks = getFrameworks ( )
32+ const frameworkNames = frameworks . map ( ( framework ) => framework . name )
3433
3534 server . tool (
3635 'listTanStackAddOns' ,
3736 'List the available add-ons for creating TanStack applications' ,
3837 {
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+ ) ,
4043 } ,
4144 ( { framework : frameworkName } ) => {
4245 const framework = getFrameworkByName ( frameworkName ) !
@@ -63,7 +66,11 @@ function createServer({
6366 'createTanStackApplication' ,
6467 'Create a new TanStack application' ,
6568 {
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+ ) ,
6774 projectName : z
6875 . string ( )
6976 . describe (
@@ -77,7 +84,13 @@ function createServer({
7784 'The directory to create the application in. Use the absolute path of the directory you want the application to be created in' ,
7885 ) ,
7986 } ,
80- async ( { framework :frameworkName , projectName, addOns, cwd, targetDir } ) => {
87+ async ( {
88+ framework : frameworkName ,
89+ projectName,
90+ addOns,
91+ cwd,
92+ targetDir,
93+ } ) => {
8194 const framework = getFrameworkByName ( frameworkName ) !
8295 try {
8396 process . chdir ( cwd )
0 commit comments