Skip to content

Commit

Permalink
fix: composer format
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Dec 23, 2024
1 parent 7aa2557 commit 9caddcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Commands/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ public function generateFiles()
}
}

if ($stub == 'composer.json') {
$content = str_replace('"require": []', '"require": {}', $content);
}

if (! $this->filesystem->isDirectory($dir = dirname($path))) {
$this->filesystem->makeDirectory($dir, 0775, true);
$this->removeParentDirGitKeep($dir);
Expand Down

0 comments on commit 9caddcb

Please sign in to comment.