Skip to content

Commit 4d9d977

Browse files
bteabrc-dd
andauthoredAug 13, 2023
fix(cli/init): terminal message has not enough contrast (#2786)
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 parent e0be677 commit 4d9d977

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎src/node/cli.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ if (!command || command === 'dev') {
4242
)
4343
process.exit(1)
4444
})
45+
} else if (command === 'init') {
46+
createLogger().info('', { clear: true })
47+
init()
4548
} else {
4649
logVersion()
4750
if (command === 'build') {
@@ -56,8 +59,6 @@ if (!command || command === 'dev') {
5659
)
5760
process.exit(1)
5861
})
59-
} else if (command === 'init') {
60-
init()
6162
} else {
6263
createLogger().error(c.red(`unknown command "${command}".`))
6364
process.exit(1)

‎src/node/init/init.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from '@clack/prompts'
1010
import fs from 'fs-extra'
1111
import path from 'path'
12-
import { black, cyan, bgCyan, bold, yellow } from 'picocolors'
12+
import { cyan, bold, yellow } from 'picocolors'
1313
import { fileURLToPath } from 'url'
1414
import template from 'lodash.template'
1515

@@ -29,7 +29,7 @@ export interface ScaffoldOptions {
2929
}
3030

3131
export async function init() {
32-
intro(bgCyan(bold(black(' Welcome to VitePress! '))))
32+
intro(bold(cyan(' Welcome to VitePress! ')))
3333

3434
const options: ScaffoldOptions = await group(
3535
{

0 commit comments

Comments
 (0)
Please sign in to comment.