Skip to content

Commit

Permalink
changed build and Install
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-the-Diamond committed Mar 6, 2024
1 parent 8a95e41 commit 8f9e65e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/builder/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 2 additions & 0 deletions packages/builder/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -156,6 +157,7 @@ public function register_plugins(): void
alert('AdminPanelProvider not found. You need to add the plugins manually.');
}
}
}

public function finish(): void
{
Expand Down

0 comments on commit 8f9e65e

Please sign in to comment.