File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,10 @@ export function printServerUrls(
153
153
info ( ` ${ colors . green ( '➜' ) } ${ colors . bold ( 'Network' ) } : ${ colorUrl ( url ) } ` )
154
154
}
155
155
if ( urls . network . length === 0 && optionsHost === undefined ) {
156
- const note = `use ${ colors . reset ( colors . bold ( '--host' ) ) } to expose`
157
156
info (
158
- colors . dim ( ` ${ colors . green ( '➜' ) } ${ colors . bold ( 'Network' ) } : ${ note } ` ) ,
157
+ colors . dim ( ` ${ colors . green ( '➜' ) } ${ colors . bold ( 'Network' ) } : use ` ) +
158
+ colors . bold ( '--host' ) +
159
+ colors . dim ( ' to expose' ) ,
159
160
)
160
161
}
161
162
}
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ export interface ViteDevServer {
306
306
* @internal
307
307
* Actually BindShortcutsOptions | undefined but api-extractor checks for
308
308
* export before trimming internal types :(
309
- * And I don't want to complexity prePatchTypes for that
309
+ * And I don't want to add complexity to prePatchTypes for that
310
310
*/
311
311
_shortcutsOptions : any | undefined
312
312
}
Original file line number Diff line number Diff line change @@ -50,14 +50,16 @@ export function bindShortcuts(
50
50
51
51
if ( input === 'h' ) {
52
52
server . config . logger . info (
53
- shortcuts
54
- . map (
53
+ [
54
+ '' ,
55
+ colors . bold ( ' Shortcuts' ) ,
56
+ ...shortcuts . map (
55
57
( shortcut ) =>
56
58
colors . dim ( ' press ' ) +
57
59
colors . bold ( shortcut . key ) +
58
60
colors . dim ( ` to ${ shortcut . description } ` ) ,
59
- )
60
- . join ( '\n' ) ,
61
+ ) ,
62
+ ] . join ( '\n' ) ,
61
63
)
62
64
}
63
65
You can’t perform that action at this time.
0 commit comments