Skip to content

Commit

Permalink
Add disableProcessTimeout to composer run dev (#370)
Browse files Browse the repository at this point in the history
* Add disableProcessTimeout to composer run dev

* fix styleci
  • Loading branch information
ryan08100715 authored Dec 8, 2024
1 parent 54bd7c9 commit 2fef5a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2fef5a3

Please sign in to comment.