File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 66use Illuminate \Support \Facades \File ;
77use Illuminate \Support \Facades \Process ;
88use Tonysm \TailwindCss \Manifest ;
9+ use Symfony \Component \Process \Process as SymfonyProcess ;
910
1011class BuildCommand extends Command
1112{
@@ -48,7 +49,7 @@ public function handle()
4849 }
4950
5051 Process::forever ()
51- ->tty (PHP_OS != ' WINNT ' && is_writable ( ' /dev/tty ' ))
52+ ->tty (SymfonyProcess:: isTtySupported ( ))
5253 ->path (base_path ())
5354 ->run (array_filter ([
5455 $ binFile ,
Original file line number Diff line number Diff line change 77use Illuminate \Support \Facades \Process ;
88use Illuminate \Support \Str ;
99use Symfony \Component \Process \PhpExecutableFinder ;
10+ use Symfony \Component \Process \Process as SymfonyProcess ;
1011use Tonysm \TailwindCss \Actions \AppendTailwindTag ;
1112
1213class InstallCommand extends Command
@@ -53,7 +54,7 @@ private function ensureTailwindConfigExists()
5354 private function ensureTailwindCliBinaryExists ()
5455 {
5556 if (! File::exists (config ('tailwindcss.bin_path ' )) || $ this ->option ('download ' )) {
56- Process::forever ()->tty (PHP_OS != ' WINNT ' && is_writable ( ' /dev/tty ' ))->run ([
57+ Process::forever ()->tty (SymfonyProcess:: isTtySupported ( ))->run ([
5758 $ this ->phpBinary (),
5859 'artisan ' ,
5960 'tailwindcss:download ' ,
@@ -168,7 +169,7 @@ private function addIngoreLines()
168169
169170 private function runFirstBuild ()
170171 {
171- Process::forever ()->tty (PHP_OS != ' WINNT ' && is_writable ( ' /dev/tty ' ))->run ([
172+ Process::forever ()->tty (SymfonyProcess:: isTtySupported ( ))->run ([
172173 $ this ->phpBinary (),
173174 'artisan ' ,
174175 'tailwindcss:build ' ,
You can’t perform that action at this time.
0 commit comments