Skip to content

Commit 778c22e

Browse files
author
Kelly Selden
committed
consolidate runEmber calls
1 parent a4d438e commit 778c22e

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/get-start-and-end-commands.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,19 @@ function createProject(runEmber) {
201201
}
202202
}) => {
203203
return async function createProject(cwd) {
204-
if (!blueprint || !blueprint.isBaseBlueprint) {
204+
async function _runEmber(blueprint) {
205205
await runEmber({
206206
packageRoot,
207207
cwd,
208208
projectName,
209-
blueprint: baseBlueprint
209+
blueprint
210210
});
211211
}
212212

213+
if (!blueprint || !blueprint.isBaseBlueprint) {
214+
await _runEmber(baseBlueprint);
215+
}
216+
213217
if (blueprint) {
214218
if (await isDefaultAddonBlueprint(blueprint)) {
215219
await module.exports.installAddonBlueprint({
@@ -218,12 +222,7 @@ function createProject(runEmber) {
218222
blueprint
219223
});
220224
} else {
221-
await runEmber({
222-
packageRoot,
223-
cwd,
224-
projectName,
225-
blueprint
226-
});
225+
await _runEmber(blueprint);
227226
}
228227
}
229228

0 commit comments

Comments
 (0)