There was an error while loading. Please reload this page.
1 parent 629eeb5 commit 3c31a4cCopy full SHA for 3c31a4c
1 file changed
src/CreateCommand.php
@@ -152,6 +152,10 @@ protected function handle(): int
152
if ($this->projectType === 'console') {
153
\Leaf\FS\File::move("$directory/bin/sprout", "$directory/bin/" . basename($directory));
154
155
+ \Leaf\FS\File::write("$directory/composer.json", function ($content) use ($directory) {
156
+ return str_replace('"bin/sprout"', '"bin/' . basename($directory) . '"', $content);
157
+ });
158
+
159
$this->writeln("\n🚀 Successfully created project " . basename($directory) . "\n");
160
$this->writeln('👉 Get started with the following commands:');
161
$this->writeln("\n cd " . basename($directory));
0 commit comments