mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-14 21:21:11 -05:00
fix: avoid emoji length problem in update log (close #835)
This commit is contained in:
@@ -16,9 +16,9 @@ module.exports = async function clearConsoleWithTitle (checkUpdate) {
|
||||
}
|
||||
if (checkUpdate && semver.gt(latest, current)) {
|
||||
title += chalk.green(`
|
||||
┌─────────────────────────${`─`.repeat(latest.length)}─┐
|
||||
│ ✨ Update available: ${latest} ✨ │
|
||||
└─────────────────────────${`─`.repeat(latest.length)}─┘`)
|
||||
┌────────────────────${`─`.repeat(latest.length)}──┐
|
||||
│ Update available: ${latest} │
|
||||
└────────────────────${`─`.repeat(latest.length)}──┘`)
|
||||
}
|
||||
|
||||
clearConsole(title)
|
||||
|
||||
Reference in New Issue
Block a user