@@ -43,14 +43,6 @@ const group = await clack.group(
43
43
{ value : 'js' , label : pc . blue ( 'JavaScript' ) } ,
44
44
] ,
45
45
} ) ,
46
- template : ( ) =>
47
- clack . select ( {
48
- message : 'Project template:' ,
49
- options : [
50
- { value : 'standard' , label : pc . magenta ( 'Standard (recommended)' ) } ,
51
- { value : 'custom' , label : pc . blue ( 'Custom' ) } ,
52
- ] ,
53
- } ) ,
54
46
transports : ( ) => {
55
47
return clack . multiselect ( {
56
48
message : 'Project Transport Type:' ,
@@ -63,6 +55,14 @@ const group = await clack.group(
63
55
] ,
64
56
} )
65
57
} ,
58
+ template : ( ) =>
59
+ clack . select ( {
60
+ message : 'Project template:' ,
61
+ options : [
62
+ { value : 'standard' , label : pc . magenta ( 'Standard (recommended)' ) } ,
63
+ { value : 'custom' , label : pc . blue ( 'Custom' ) } ,
64
+ ] ,
65
+ } ) ,
66
66
plugins : ( { results } ) => {
67
67
if ( results . template !== 'custom' ) {
68
68
return Promise . resolve ( [ 'github-action' , 'vitest' , 'inspector' , 'style' , 'commitlint' , 'changelog' ] )
@@ -93,7 +93,7 @@ const group = await clack.group(
93
93
} ,
94
94
)
95
95
96
- const templatePath = join ( __dirname , '../template' , `${ group . type } -${ group . template } - ${ group . language } ` )
96
+ const templatePath = join ( __dirname , '../template' , `${ group . type } -${ group . language } ` )
97
97
const targetPath = resolve ( process . cwd ( ) , group . name as string )
98
98
99
99
if ( ! ( await fileExists ( templatePath ) ) ) {
0 commit comments