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 {
21
21
flags ,
22
22
HttpClient ,
23
23
configHandler ,
24
- FlagInput
24
+ FlagInput ,
25
25
} from "@contentstack/cli-utilities" ;
26
26
27
27
import { BaseCommand } from "../../base-command" ;
@@ -100,11 +100,9 @@ export default class Create extends BaseCommand<typeof Create> {
100
100
const boilerplate : BoilerplateAppType = await selectedBoilerplate ( ) ;
101
101
102
102
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, "-" ) ;
108
106
this . sharedConfig . appBoilerplateGithubUrl = boilerplate . link ;
109
107
this . sharedConfig . appName = await getAppName (
110
108
this . sharedConfig . boilerplateName
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ export interface LaunchProjectRes {
142
142
}
143
143
144
144
export interface BoilerplateAppType {
145
- name ? : string ;
145
+ name : string ;
146
146
description ?: string ;
147
147
link : string ;
148
148
tags ?: string [ ] ;
You can’t perform that action at this time.
0 commit comments