From 2fef5a3a86c73abceed59f15d141a66780fb072e Mon Sep 17 00:00:00 2001 From: Ryan WSY <88856581+ryan08100715@users.noreply.github.com> Date: Sun, 8 Dec 2024 23:18:48 +0800 Subject: [PATCH] Add disableProcessTimeout to composer run dev (#370) * Add disableProcessTimeout to composer run dev * fix styleci --- src/NewCommand.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 4a13b2b..bab9cac 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -770,7 +770,10 @@ protected function configureComposerDevScript(string $directory): void { $this->composer->modify(function (array $content) { if (windows_os()) { - $content['scripts']['dev'] = "npx concurrently -c \"#93c5fd,#c4b5fd,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"npm run dev\" --names='server,queue,vite'"; + $content['scripts']['dev'] = [ + 'Composer\\Config::disableProcessTimeout', + "npx concurrently -c \"#93c5fd,#c4b5fd,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"npm run dev\" --names='server,queue,vite'" + ]; } return $content;