chore: skip cd command in finish instructions if created in current dir

This commit is contained in:
Evan You
2018-03-02 21:56:28 -05:00
parent 8eb0bc8261
commit ee13f7cf50

View File

@@ -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()