From 80974254fe17ac97f054b83bc4ca86377a0282d5 Mon Sep 17 00:00:00 2001 From: Thadeu Cotts Date: Thu, 26 Nov 2020 16:48:02 -0300 Subject: [PATCH] [option] [xs]: add option description --- packages/create-portal-app/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/create-portal-app/index.js b/packages/create-portal-app/index.js index 020c1aac..44cc281d 100755 --- a/packages/create-portal-app/index.js +++ b/packages/create-portal-app/index.js @@ -24,7 +24,7 @@ program dir: 'Directory to be used on install Portal.js', }) .action((name) => (projectPath = name)) - .option('--use-npm') + .option('--use-npm', 'Install dependencies using npm instead yarn') .parse(process.argv) /** @@ -127,9 +127,7 @@ async function run() { console.log(`${chalk.greenBright('Instalation Completed Successfully')}`) console.log() console.log( - `Run ${chalk.cyan('cd ' + projectPath)} and ${chalk.green( - 'yarn dev' - )} or ${chalk.yellow('npm run dev')}` + `Run ${chalk.cyan('cd ' + projectPath)} and ${chalk.green(program.useNpm ? 'npm run dev' : 'yarn dev')}` ) console.log() console.log('Enjoy =)')