File tree Expand file tree Collapse file tree
packages/nuxi/src/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -271,23 +271,18 @@ export default defineCommand({
271271 let dir = ctx . args . dir
272272 if ( dir === '' ) {
273273 const defaultDir = availableTemplates [ templateName ] ?. defaultDir || 'nuxt-app'
274- if ( isNonInteractive ) {
275- dir = defaultDir
276- }
277- else {
278- const result = await text ( {
279- message : 'Where would you like to create your project?' ,
280- placeholder : `./${ defaultDir } ` ,
281- defaultValue : defaultDir ,
282- } )
283-
284- if ( isCancel ( result ) ) {
285- cancel ( 'Operation cancelled.' )
286- process . exit ( 1 )
287- }
274+ const result = await text ( {
275+ message : 'Where would you like to create your project?' ,
276+ placeholder : `./${ defaultDir } ` ,
277+ defaultValue : defaultDir ,
278+ } )
288279
289- dir = result
280+ if ( isCancel ( result ) ) {
281+ cancel ( 'Operation cancelled.' )
282+ process . exit ( 1 )
290283 }
284+
285+ dir = result
291286 }
292287
293288 const cwd = resolve ( ctx . args . cwd )
You can’t perform that action at this time.
0 commit comments