From 5999444496b6309460687b0769afad018aa21859 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Thu, 24 Jun 2021 08:34:42 -0400 Subject: [PATCH] fix: do not end server process in CI (#3659) --- packages/vite/src/node/server/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/node/server/index.ts b/packages/vite/src/node/server/index.ts index 0e06d6bc52808a..783a3787858920 100644 --- a/packages/vite/src/node/server/index.ts +++ b/packages/vite/src/node/server/index.ts @@ -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) => {