Skip to content

Commit

Permalink
Merge pull request #29 from innocenzi/feat/per-project-prettier-insta…
Browse files Browse the repository at this point in the history
…llation

fix(prettier-formatter): support per-project install
  • Loading branch information
rubenvanassche authored Jun 29, 2022
2 parents 261f5d3 + 27ed708 commit 0a42590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Formatters/PrettierFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PrettierFormatter implements Formatter
{
public function format(string $file): void
{
$process = new Process(['prettier', '--write', $file]);
$process = new Process(['npx', '--yes', 'prettier', '--write', $file]);
$process->run();

if (! $process->isSuccessful()) {
Expand Down

0 comments on commit 0a42590

Please sign in to comment.