diff --git a/src/Console/Commands/StarterKitExport.php b/src/Console/Commands/StarterKitExport.php index 81bb0bbbe4..9777ea4cda 100644 --- a/src/Console/Commands/StarterKitExport.php +++ b/src/Console/Commands/StarterKitExport.php @@ -114,6 +114,11 @@ protected function askToMigrateToPackageFolder(): void $this->components->info('Starter kit config moved to [package/starter-kit.yaml].'); } + if (File::exists($postInstallHook = base_path('StarterKitPostInstall.php'))) { + File::move($postInstallHook, base_path('package/StarterKitPostInstall.php')); + $this->components->info('Starter kit post-install hook moved to [package/StarterKitPostInstall.php].'); + } + if (File::exists($packageComposerJson = $this->getAbsolutePath().'/composer.json')) { File::move($packageComposerJson, base_path('package/composer.json')); $this->components->info('Composer package config moved to [package/composer.json].');