Skip to content

Commit

Permalink
fix(cli): exit 1 on ctrl+c
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Jan 3, 2023
1 parent 718fc1d commit 20d528b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export function bindShortcuts(
const onInput = async (input: string) => {
// ctrl+c or ctrl+d
if (input === '\x03' || input === '\x04') {
process.stdin.setRawMode(false)
process.stdin.write(input)
process.exit(1)
return
}

Expand Down

0 comments on commit 20d528b

Please sign in to comment.