From 8114217c6e25755b31b4d472c6aa2055c517e49d Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 20 Jul 2025 16:37:04 +0000 Subject: [PATCH] fix(dev): use 'SIGTERM' to kill process on deno --- packages/nuxi/src/commands/dev.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxi/src/commands/dev.ts b/packages/nuxi/src/commands/dev.ts index 19b8c7a0c..c54566f75 100644 --- a/packages/nuxi/src/commands/dev.ts +++ b/packages/nuxi/src/commands/dev.ts @@ -16,7 +16,7 @@ import { listen } from 'listhen' import { getArgs as getListhenArgs, parseArgs as parseListhenArgs } from 'listhen/cli' import { resolve } from 'pathe' import { satisfies } from 'semver' -import { isBun, isTest } from 'std-env' +import { isBun, isDeno, isTest } from 'std-env' import { initialize } from '../dev' import { renderError } from '../dev/error' @@ -275,7 +275,7 @@ async function startSubprocess(cwd: string, args: { logLevel: string, clear: boo let ready: Promise | undefined const kill = (signal: NodeJS.Signals | number) => { if (childProc) { - childProc.kill(signal) + childProc.kill(signal === 0 && isDeno ? 'SIGTERM' : signal) childProc = undefined } }