File tree 1 file changed +9
-11
lines changed
1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -242,17 +242,15 @@ async function init() {
242
242
)
243
243
244
244
if ( ! targetDir ) {
245
- targetDir =
246
- result . projectName =
247
- result . packageName =
248
- await unwrapPrompt (
249
- text ( {
250
- message : language . projectName . message ,
251
- placeholder : defaultProjectName ,
252
- validate : ( value ) =>
253
- value . trim ( ) . length > 0 ? undefined : language . projectName . invalidMessage ,
254
- } ) ,
255
- )
245
+ const _result = await unwrapPrompt (
246
+ text ( {
247
+ message : language . projectName . message ,
248
+ placeholder : defaultProjectName ,
249
+ validate : ( value ) =>
250
+ value . trim ( ) . length > 0 ? undefined : language . projectName . invalidMessage ,
251
+ } ) ,
252
+ )
253
+ targetDir = result . projectName = result . packageName = _result . trim ( )
256
254
}
257
255
258
256
if ( ! canSkipEmptying ( targetDir ) && ! forceOverwrite ) {
You can’t perform that action at this time.
0 commit comments