From af07a3264ce6060107113f9e64bf59f75fbe4bfa Mon Sep 17 00:00:00 2001 From: Rob Aldred Date: Fri, 20 Sep 2019 14:16:07 +0100 Subject: [PATCH] Update run instructions to use projectDir Run instructions use projectName Updated to use projectDir to display correct instruction when using the --direction option --- packages/cli/src/commands/init/printRunInstructions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/init/printRunInstructions.ts b/packages/cli/src/commands/init/printRunInstructions.ts index 649fdb9fc..7d9c6e276 100644 --- a/packages/cli/src/commands/init/printRunInstructions.ts +++ b/packages/cli/src/commands/init/printRunInstructions.ts @@ -26,14 +26,14 @@ function printRunInstructions(projectDir: string, projectName: string) { logger.log(` ${chalk.cyan(`Run instructions for ${chalk.bold('iOS')}`)}: - • cd ${projectName} && react-native run-ios + • cd ${projectDir} && react-native run-ios ${chalk.dim('- or -')} • Open ${relativeXcodeProjectPath} in Xcode or run "xed -b ios" • Hit the Run button ${chalk.green(`Run instructions for ${chalk.bold('Android')}`)}: • Have an Android emulator running (quickest way to get started), or a device connected. - • cd ${projectName} && react-native run-android + • cd ${projectDir} && react-native run-android `); }