diff --git a/actions/start.action.ts b/actions/start.action.ts index 00081a505..3c67a568d 100644 --- a/actions/start.action.ts +++ b/actions/start.action.ts @@ -2,7 +2,6 @@ import { red } from 'ansis'; import { spawn } from 'child_process'; import * as fs from 'fs'; import { join } from 'path'; -import * as killProcess from 'tree-kill'; import { Input } from '../commands'; import { getTscConfigPath } from '../lib/compiler/helpers/get-tsc-config.path'; import { getValueOrDefault } from '../lib/compiler/helpers/get-value-or-default'; @@ -151,7 +150,7 @@ export class StartAction extends BuildAction { }); childProcessRef.stdin && childProcessRef.stdin.pause(); - killProcess(childProcessRef.pid); + killProcessSync(childProcessRef.pid); } else { childProcessRef = this.spawnChildProcess( entryFile, diff --git a/package.json b/package.json index e7a7b7278..49b2bdb3b 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,6 @@ "glob": "11.0.3", "node-emoji": "1.11.0", "ora": "5.4.1", - "tree-kill": "1.2.2", "tsconfig-paths": "4.2.0", "tsconfig-paths-webpack-plugin": "4.2.0", "typescript": "5.8.3",