File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 35
35
"open" : " ^8.4.0" ,
36
36
"cross-spawn" : " ^7.0.3"
37
37
},
38
- "version" : " 0.0.5 "
38
+ "version" : " 0.0.6 "
39
39
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vite-plugin-shortcuts" ,
3
- "version" : " 0.0.5 " ,
3
+ "version" : " 0.0.6 " ,
4
4
"description" : " plugin shortcuts into Vite dev server" ,
5
5
"keywords" : [
6
6
" vite" ,
Original file line number Diff line number Diff line change @@ -29,13 +29,8 @@ export function bindShortcuts(
29
29
const onInput = async ( input : string ) => {
30
30
// ctrl+c or ctrl+d
31
31
if ( input === '\x03' || input === '\x04' ) {
32
- // TODO npm run all ctrl c need double
33
- // server.config.logger.warn(
34
- // colors.yellow(
35
- // 'starts vite dev server with the JS API ctrl c or ctrl d need double'
36
- // )
37
- // );
38
- process . emit ( 'SIGTERM' ) ;
32
+ // from https://github.com/vitejs/vite/pull/11563
33
+ await server . close ( ) . finally ( ( ) => process . exit ( 1 ) ) ;
39
34
return ;
40
35
}
41
36
You can’t perform that action at this time.
0 commit comments