diff --git a/packages/builder/build.php b/packages/builder/build.php index 92334228b..32f430a6c 100644 --- a/packages/builder/build.php +++ b/packages/builder/build.php @@ -159,12 +159,16 @@ function replaceForAllOtherOSes(): array $currentDirectory = getcwd(); $folderName = basename($currentDirectory); -do { - writeln('Invalid package name: "builder" is not allowed.'); - $packageName = ask('Package name', $folderName); -} while (! isValidPackageName($packageName)); +if(!isValidPackageName($folderName)){ + do { + writeln('Invalid package name: "builder" is not allowed.'); + $name = ask('Package name'); + $packageName = $name; + } while (! isValidPackageName($packageName)); +}else{ + $packageName = $folderName; +} -$packageName = $packageName; $packageSlug = slugify($packageName); $packageSlugWithoutPrefix = remove_prefix('laravel-', $packageSlug); diff --git a/packages/builder/src/Commands/InstallCommand.php b/packages/builder/src/Commands/InstallCommand.php index 36f7466fd..efe75d9da 100644 --- a/packages/builder/src/Commands/InstallCommand.php +++ b/packages/builder/src/Commands/InstallCommand.php @@ -99,6 +99,7 @@ public function run_migrations(): void public function register_plugins(): void { + if (confirm('Do you wish to publish the configuration?', true)) { note('Registering the Filament Resources...'); $providerPath = app_path('Providers/Filament/AdminPanelProvider.php'); @@ -156,6 +157,7 @@ public function register_plugins(): void alert('AdminPanelProvider not found. You need to add the plugins manually.'); } } + } public function finish(): void {