mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-14 13:11:10 -05:00
chore: skip cd command in finish instructions if created in current dir
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user