File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
2121 flags ,
2222 HttpClient ,
2323 configHandler ,
24- FlagInput
24+ FlagInput ,
2525} from "@contentstack/cli-utilities" ;
2626
2727import { BaseCommand } from "../../base-command" ;
@@ -100,11 +100,9 @@ export default class Create extends BaseCommand<typeof Create> {
100100 const boilerplate : BoilerplateAppType = await selectedBoilerplate ( ) ;
101101
102102 if ( boilerplate ) {
103- if ( boilerplate . name ) {
104- this . sharedConfig . boilerplateName = boilerplate . name
105- . toLowerCase ( )
106- . replace ( / / g, "-" ) ;
107- }
103+ this . sharedConfig . boilerplateName = boilerplate . name
104+ . toLowerCase ( )
105+ . replace ( / / g, "-" ) ;
108106 this . sharedConfig . appBoilerplateGithubUrl = boilerplate . link ;
109107 this . sharedConfig . appName = await getAppName (
110108 this . sharedConfig . boilerplateName
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ export interface LaunchProjectRes {
142142}
143143
144144export interface BoilerplateAppType {
145- name ? : string ;
145+ name : string ;
146146 description ?: string ;
147147 link : string ;
148148 tags ?: string [ ] ;
You can’t perform that action at this time.
0 commit comments