Skip to content

Commit ee13f7c

Browse files
committed
chore: skip cd command in finish instructions if created in current dir
1 parent 8eb0bc8 commit ee13f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli/lib/Creator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ module.exports = class Creator {
172172
log(`🎉 Successfully created project ${chalk.yellow(name)}.`)
173173
log(
174174
`👉 Get started with the following commands:\n\n` +
175-
chalk.cyan(` ${chalk.gray('$')} cd ${name}\n`) +
175+
(this.context === process.cwd() ? `` : chalk.cyan(` ${chalk.gray('$')} cd ${name}\n`)) +
176176
chalk.cyan(` ${chalk.gray('$')} ${packageManager === 'yarn' ? 'yarn serve' : 'npm run serve'}`)
177177
)
178178
log()

0 commit comments

Comments
 (0)