File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,38 +186,25 @@ function createProject(runEmber) {
186186 } ) ;
187187 }
188188
189- return await postCreateProject ( {
190- cwd,
191- options
192- } ) ;
193- } ;
194- } ;
195- }
196-
197- async function postCreateProject ( {
198- cwd,
199- options : {
200- projectName,
201- blueprint
202- }
203- } ) {
204- if ( blueprint && isDefaultAddonBlueprint ( blueprint ) ) {
205- await module . exports . installAddonBlueprint ( {
206- cwd,
207- projectName,
208- blueprint
209- } ) ;
210- }
189+ if ( options . blueprint && isDefaultAddonBlueprint ( options . blueprint ) ) {
190+ await module . exports . installAddonBlueprint ( {
191+ cwd,
192+ projectName : options . projectName ,
193+ blueprint : options . blueprint
194+ } ) ;
195+ }
211196
212- if ( ! ( blueprint && isDefaultBlueprint ( blueprint ) ) ) {
213- // This might not be needed anymore.
214- await module . exports . appendNodeModulesIgnore ( {
215- cwd,
216- projectName
217- } ) ;
218- }
197+ if ( ! ( options . blueprint && isDefaultBlueprint ( options . blueprint ) ) ) {
198+ // This might not be needed anymore.
199+ await module . exports . appendNodeModulesIgnore ( {
200+ cwd,
201+ projectName : options . projectName
202+ } ) ;
203+ }
219204
220- return path . join ( cwd , projectName ) ;
205+ return path . join ( cwd , options . projectName ) ;
206+ } ;
207+ } ;
221208}
222209
223210module . exports . installAddonBlueprint = async function installAddonBlueprint ( {
You can’t perform that action at this time.
0 commit comments