From decb8bee4b01400d52a07afa5ad0263a81684915 Mon Sep 17 00:00:00 2001 From: Brent Hoover Date: Tue, 25 Oct 2022 17:33:41 +0800 Subject: [PATCH 1/2] Revert "fix: correct the update message. Closes #62" Signed-off-by: Brent Hoover --- utils/checkForNewVersion.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); } From 32558f9950e42d529a77696fbd3f3f8389901599 Mon Sep 17 00:00:00 2001 From: Brent Hoover Date: Tue, 25 Oct 2022 09:41:55 +0000 Subject: [PATCH 2/2] fix: fix lint errors from another PR Signed-off-by: Brent Hoover --- commands/create-project.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; }