From ee13f7cf50490cb0415bc38c0ffa3fafb35a2f8d Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 2 Mar 2018 21:56:28 -0500 Subject: [PATCH] chore: skip cd command in finish instructions if created in current dir --- packages/@vue/cli/lib/Creator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vue/cli/lib/Creator.js b/packages/@vue/cli/lib/Creator.js index 870d541c0..9b636fd55 100644 --- a/packages/@vue/cli/lib/Creator.js +++ b/packages/@vue/cli/lib/Creator.js @@ -172,7 +172,7 @@ module.exports = class Creator { log(`🎉 Successfully created project ${chalk.yellow(name)}.`) log( `👉 Get started with the following commands:\n\n` + - chalk.cyan(` ${chalk.gray('$')} cd ${name}\n`) + + (this.context === process.cwd() ? `` : chalk.cyan(` ${chalk.gray('$')} cd ${name}\n`)) + chalk.cyan(` ${chalk.gray('$')} ${packageManager === 'yarn' ? 'yarn serve' : 'npm run serve'}`) ) log()