Skip to content

Commit 40664e4

Browse files
committed
Builder Pint on Windows
1 parent 65380e9 commit 40664e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/builder/src/Services/File/FileFormatter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ public function formatFiles(array $paths): void
2323
return;
2424
}
2525

26-
$command = "vendor/bin/pint {$fileList} --quiet";
26+
$command = PHP_OS_FAMILY === 'Windows'
27+
? "php vendor/bin/pint {$fileList} --quiet"
28+
: "vendor/bin/pint {$fileList} --quiet";
29+
2730
exec($command, $output, $returnCode);
2831

2932
if ($returnCode !== 0) {

0 commit comments

Comments
 (0)