Skip to content

Commit

Permalink
fix: do not end server process in CI (vitejs#3659)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS authored and aleclarson committed Nov 8, 2021
1 parent 484a9d3 commit 126c0cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/server/index.ts
Expand Up @@ -401,8 +401,9 @@ export async function createServer(

process.once('SIGTERM', exitProcess)

if (!process.stdin.isTTY) {
if (process.env.CI !== 'true') {
process.stdin.on('end', exitProcess)
process.stdin.resume()
}

watcher.on('change', async (file) => {
Expand Down

0 comments on commit 126c0cd

Please sign in to comment.