diff --git a/commands/create-project.js b/commands/create-project.js index 25bb9ef..e1a4cc0 100644 --- a/commands/create-project.js +++ b/commands/create-project.js @@ -21,11 +21,12 @@ const extraDependencyMap = { * @summary creates api, admin, and storefront projects at same time in separate directories. * @param {String} projectName - The name of the project to create * @param {Object} options - Project options + * @returns {Boolean} true if success */ export async function createProjectAll(projectName, options) { - createProjectApi(projectName + "Api", options); - createProjectAdmin(projectName + "Admin", options); - createProjectStorefront(projectName + "Storefront", options); + createProjectApi(`${projectName}Api`, options); + createProjectAdmin(`${projectName}Admin`, options); + createProjectStorefront(`${projectName}Storefront`, options); return true; } diff --git a/utils/checkForNewVersion.js b/utils/checkForNewVersion.js index 34d2857..bb4f84f 100644 --- a/utils/checkForNewVersion.js +++ b/utils/checkForNewVersion.js @@ -12,7 +12,5 @@ const pkg = require("../package.json"); */ export default async function checkForNewVersion() { const notifier = updateNotifier({ pkg }); - const updateCommand = "npm i -g reaction-cli"; - const updateMessage = `Run ${updateCommand} to update.`; - notifier.notify({ message: updateMessage }); + notifier.notify(); }