From 5b458293631db32f9cd6f44da63d92aa99949986 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Sat, 4 Jan 2025 14:45:25 +1030 Subject: [PATCH] fix: typegen never exits when use with cloudflare plugin (#127) close #126 closing vite server won't close the wranler proxy --- src/cli.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli.ts b/src/cli.ts index 85299884..bf4c00ea 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -6,6 +6,7 @@ async function run() { const { runner, server } = await createContext(); await runner.executeFile(path.resolve(import.meta.dirname, '../dist/empty.js')); await server.close(); + process.exit(0); } const command = process.argv[2];