Skip to content

Commit 0732347

Browse files
author
Kelly Selden
committed
remove postCreateProject
1 parent 9f50d36 commit 0732347

1 file changed

Lines changed: 17 additions & 30 deletions

File tree

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

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff 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

223210
module.exports.installAddonBlueprint = async function installAddonBlueprint({

0 commit comments

Comments
 (0)