Skip to content

Commit 073d83b

Browse files
authored
Merge pull request #159 from reactioncommerce/revert-127-trunk
Revert "fix: correct the update message. Closes #62"
2 parents 5573370 + 32558f9 commit 073d83b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

commands/create-project.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ const extraDependencyMap = {
2121
* @summary creates api, admin, and storefront projects at same time in separate directories.
2222
* @param {String} projectName - The name of the project to create
2323
* @param {Object} options - Project options
24+
* @returns {Boolean} true if success
2425
*/
2526
export async function createProjectAll(projectName, options) {
26-
createProjectApi(projectName + "Api", options);
27-
createProjectAdmin(projectName + "Admin", options);
28-
createProjectStorefront(projectName + "Storefront", options);
27+
createProjectApi(`${projectName}Api`, options);
28+
createProjectAdmin(`${projectName}Admin`, options);
29+
createProjectStorefront(`${projectName}Storefront`, options);
2930
return true;
3031
}
3132

utils/checkForNewVersion.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,5 @@ const pkg = require("../package.json");
1212
*/
1313
export default async function checkForNewVersion() {
1414
const notifier = updateNotifier({ pkg });
15-
const updateCommand = "npm i -g reaction-cli";
16-
const updateMessage = `Run ${updateCommand} to update.`;
17-
notifier.notify({ message: updateMessage });
15+
notifier.notify();
1816
}

0 commit comments

Comments
 (0)