Skip to content

fix(cli): exit 1 on ctrl+c#11563

Merged
patak-cat merged 1 commit intomainfrom
fix-ctrl-c
Jan 26, 2023
Merged

fix(cli): exit 1 on ctrl+c#11563
patak-cat merged 1 commit intomainfrom
fix-ctrl-c

Conversation

@ArnaudBarre
Copy link
Copy Markdown
Member

@ArnaudBarre ArnaudBarre commented Jan 3, 2023

This seems to be the only option to enable both shortcuts and exiting vite running via npm-run-all with default options in one ctrl+c.

The bad part is that when running vite via yarn or pnpm, you get an extra error on exit:

Screenshot 2023-01-03 at 02 05 33

When using npm-run-all, it logs: ERROR: "dev" exited with 1.

The other option is to not fix the issue. I suggested multiple way to "workaround" the issue: #11434 (comment)

For information, vitest is exiting is code 0 which is subject to the same issue (but probably people don't use vitest watch mode along other watch process)

Re: #11518 #11562

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants