From ebcb7237ef067b0fdb048bfcb99930440e6e1e87 Mon Sep 17 00:00:00 2001 From: whwyy Date: Fri, 10 Jul 2026 17:13:50 +0800 Subject: [PATCH] Skip pre-scan for hot reload build command --- kiri-engine/Application.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiri-engine/Application.php b/kiri-engine/Application.php index c1a0fadf..3f0f72d0 100644 --- a/kiri-engine/Application.php +++ b/kiri-engine/Application.php @@ -21,6 +21,7 @@ use Symfony\Component\Console\{Application as ConsoleApplication, Output\OutputInterface }; use Kiri\Server\ServerCommand; +use Kiri\Server\FileBuildCommand; use Kiri\Di\Inject\Container; use function config; @@ -73,7 +74,7 @@ class Application extends BaseApplication */ public function beforeCommandExecute(OnBeforeCommandExecute $beforeCommandExecute): void { - if ($beforeCommandExecute->command instanceof ServerCommand) { + if ($beforeCommandExecute->command instanceof ServerCommand || $beforeCommandExecute->command instanceof FileBuildCommand) { return; } $scanner = $this->container->get(Scanner::class);