@@ -328,6 +328,32 @@ export async function runCLI(toolbox: Toolbox, projectName: string): Promise<Cli
328
328
) ;
329
329
}
330
330
331
+ const stateManagementSelect = await select ( {
332
+ message : 'What would you like to use for state management?' ,
333
+ options : [
334
+ { value : undefined , label : 'None' } ,
335
+ { value : 'zustand' , label : 'Zustand' }
336
+ // { value: 'mobx', label: 'MobX' },
337
+ // { value: 'redux', label: 'Redux' },
338
+ ]
339
+ } ) ;
340
+
341
+ if ( isCancel ( stateManagementSelect ) ) {
342
+ cancel ( 'Cancelled... 👋' ) ;
343
+ return process . exit ( 0 ) ;
344
+ }
345
+
346
+ if ( stateManagementSelect ) {
347
+ cliResults . packages . push ( {
348
+ name : stateManagementSelect as StateManagementSelect ,
349
+ type : 'state-management'
350
+ } ) ;
351
+
352
+ success ( `You'll be using ${ stateManagementSelect } for state management.` ) ;
353
+ } else {
354
+ success ( `No problem, skipping state management for now.` ) ;
355
+ }
356
+
331
357
const authenticationSelect = await select ( {
332
358
message : 'What would you like to use for authentication?' ,
333
359
options : [
@@ -341,6 +367,7 @@ export async function runCLI(toolbox: Toolbox, projectName: string): Promise<Cli
341
367
cancel ( 'Cancelled... 👋' ) ;
342
368
return process . exit ( 0 ) ;
343
369
}
370
+
344
371
if ( authenticationSelect ) {
345
372
cliResults . packages . push ( { name : authenticationSelect as AuthenticationSelect , type : 'authentication' } ) ;
346
373
} else {
@@ -364,32 +391,6 @@ export async function runCLI(toolbox: Toolbox, projectName: string): Promise<Cli
364
391
success ( `No problem, skipping eas for now.` ) ;
365
392
}
366
393
367
- const stateManagementSelect = await select ( {
368
- message : 'What would you like to use for state management?' ,
369
- options : [
370
- { value : undefined , label : 'None' } ,
371
- { value : 'zustand' , label : 'Zustand' }
372
- // { value: 'mobx', label: 'MobX' },
373
- // { value: 'redux', label: 'Redux' },
374
- ]
375
- } ) ;
376
-
377
- if ( isCancel ( stateManagementSelect ) ) {
378
- cancel ( 'Cancelled... 👋' ) ;
379
- return process . exit ( 0 ) ;
380
- }
381
-
382
- if ( stateManagementSelect ) {
383
- cliResults . packages . push ( {
384
- name : stateManagementSelect as StateManagementSelect ,
385
- type : 'state-management'
386
- } ) ;
387
-
388
- success ( `You'll be using ${ stateManagementSelect } for state management.` ) ;
389
- } else {
390
- success ( `No problem, skipping state management for now.` ) ;
391
- }
392
-
393
394
// Offer user ability to save configuration
394
395
const shouldSaveConfig = await confirm ( {
395
396
message : 'Would you like to save this configuration for future use?' ,
0 commit comments