From d70dee4eec0c6adb53d8d96d1c906e9336f929d9 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Sat, 28 Mar 2020 22:56:06 +0530 Subject: [PATCH] fix: regression --- src/commands/deploy/heroku.js | 4 ++-- src/utils/messages.js | 4 ++-- src/utils/validate.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/deploy/heroku.js b/src/commands/deploy/heroku.js index da2243c90..fe11bf53f 100644 --- a/src/commands/deploy/heroku.js +++ b/src/commands/deploy/heroku.js @@ -56,8 +56,8 @@ const isLoggedIn = async () => { */ const deployToHeroku = async () => { - validateInstallation('heroku'); - validateInstallation('git help -g'); + await validateInstallation('heroku'); + await validateInstallation('git help -g'); const projectConfig = appData(); const { template } = projectConfig; diff --git a/src/utils/messages.js b/src/utils/messages.js index 785275d40..ace6413d1 100644 --- a/src/utils/messages.js +++ b/src/utils/messages.js @@ -35,7 +35,7 @@ export const templateIsGraphQL = () => { `model, route and controller`, )} directories!`; console.log( - chalk.red.bold( + chalk.yellow.bold( `\n Warning:- ${chalk.cyan.bold(`${msg} `)}`, ), @@ -85,7 +85,7 @@ export const checkIfServerExists = async () => { export const dependencyNotInstalled = dependency => { console.log( - chalk.red.bold(` Warning:- ${chalk.cyan.bold( + chalk.yellow.bold(` Warning:- ${chalk.cyan.bold( `${dependency} is required to be installed`, )} `), diff --git a/src/utils/validate.js b/src/utils/validate.js index 58c309f6d..bffbe7630 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -94,7 +94,7 @@ const validateInput = componentName => { const exec = async cmd => { return new Promise(async () => { try { - if (!isWin) { + if (isLinux) { await execa.shell('sudo apt update', { stdio: 'inherit' }); } await execa.shell(cmd), { stdio: 'inherit' }; @@ -149,7 +149,7 @@ const installDocker = async () => { */ const installHerokuCLI = async () => { - await exec('npm install -g heroku-cli'); + await exec('npm install -g heroku'); }; module.exports = {