@@ -35,7 +35,7 @@ export class CreateProjectCommand implements ICommand {
3535 private $errors : IErrors ,
3636 private $options : IOptions ,
3737 private $prompter : IPrompter ,
38- private $stringParameter : ICommandParameter
38+ private $stringParameter : ICommandParameter ,
3939 ) { }
4040
4141 public async execute ( args : string [ ] ) : Promise < void > {
@@ -55,7 +55,7 @@ export class CreateProjectCommand implements ICommand {
5555 this . $options . template
5656 ) {
5757 this . $errors . failWithHelp (
58- "You cannot use a flavor option like --ng, --vue, --react, --solid, --svelte, --tsc and --js together with --template."
58+ "You cannot use a flavor option like --ng, --vue, --react, --solid, --svelte, --tsc and --js together with --template." ,
5959 ) ;
6060 }
6161
@@ -115,7 +115,7 @@ export class CreateProjectCommand implements ICommand {
115115 this . printInteractiveCreationIntroIfNeeded ( ) ;
116116 projectName = await this . $prompter . getString (
117117 `${ getNextInteractiveAdverb ( ) } , what will be the name of your app?` ,
118- { allowEmpty : false }
118+ { allowEmpty : false } ,
119119 ) ;
120120 this . $logger . info ( ) ;
121121 }
@@ -130,7 +130,7 @@ export class CreateProjectCommand implements ICommand {
130130 this . printInteractiveCreationIntroIfNeeded ( ) ;
131131 selectedTemplate = await this . interactiveFlavorAndTemplateSelection (
132132 getNextInteractiveAdverb ( ) ,
133- getNextInteractiveAdverb ( )
133+ getNextInteractiveAdverb ( ) ,
134134 ) ;
135135 }
136136
@@ -142,17 +142,18 @@ export class CreateProjectCommand implements ICommand {
142142 // its already validated above
143143 force : true ,
144144 ignoreScripts : this . $options . ignoreScripts ,
145+ legacyPeerDeps : this . $options . legacyPeerDeps ,
145146 } ) ;
146147 }
147148
148149 private async interactiveFlavorAndTemplateSelection (
149150 flavorAdverb : string ,
150- templateAdverb : string
151+ templateAdverb : string ,
151152 ) {
152153 const selectedFlavor = await this . interactiveFlavorSelection ( flavorAdverb ) ;
153154 const selectedTemplate : string = await this . interactiveTemplateSelection (
154155 selectedFlavor ,
155- templateAdverb
156+ templateAdverb ,
156157 ) ;
157158
158159 return selectedTemplate ;
@@ -191,7 +192,7 @@ export class CreateProjectCommand implements ICommand {
191192 key : constants . JsFlavorName ,
192193 description : "Use NativeScript without any framework" ,
193194 } ,
194- ]
195+ ] ,
195196 ) ;
196197 return flavorSelection ;
197198 }
@@ -210,7 +211,7 @@ can skip this prompt next time using the --template option, or using --ng, --rea
210211
211212 private async interactiveTemplateSelection (
212213 flavorSelection : string ,
213- adverb : string
214+ adverb : string ,
214215 ) {
215216 const selectedFlavorTemplates : {
216217 key ?: string ;
@@ -255,10 +256,10 @@ can skip this prompt next time using the --template option, or using --ng, --rea
255256 } ) ;
256257 const selectedTemplateKey = await this . $prompter . promptForDetailedChoice (
257258 `${ adverb } , which template would you like to start from:` ,
258- templateChoices
259+ templateChoices ,
259260 ) ;
260261 selectedTemplate = selectedFlavorTemplates . find (
261- ( t ) => t . key === selectedTemplateKey
262+ ( t ) => t . key === selectedTemplateKey ,
262263 ) . value ;
263264 } else {
264265 selectedTemplate = selectedFlavorTemplates [ 0 ] . value ;
@@ -472,14 +473,14 @@ can skip this prompt next time using the --template option, or using --ng, --rea
472473 ] . join ( " " ) ,
473474 "" ,
474475 `Now you can navigate to your project with ${ color . cyan (
475- `cd ${ relativePath } `
476+ `cd ${ relativePath } ` ,
476477 ) } and then:`,
477478 "" ,
478479 ...runDebugNotes ,
479480 `` ,
480481 `For more options consult the docs or run ${ color . green ( "ns --help" ) } ` ,
481482 "" ,
482- ] . join ( "\n" )
483+ ] . join ( "\n" ) ,
483484 ) ;
484485 // todo: add back ns preview
485486 // this.$logger.printMarkdown(
0 commit comments