Skip to content

Commit 5e615c0

Browse files
Add install command
1 parent 8c0456f commit 5e615c0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/ToolsServiceProvider.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ public function configurePackage(Package $package): void
3838
->publishMigrations()
3939
->askToRunMigrations()
4040
->askToStarRepoOnGitHub('backstage/tools');
41+
42+
$command->startWith(function () use ($command) {
43+
$publishables = [
44+
'horizon-config',
45+
'pulse-migrations',
46+
'pulse-config',
47+
'telescope-migrations',
48+
];
49+
50+
foreach ($publishables as $publishable) {
51+
$command->call('vendor:publish', [
52+
'--tag' => $publishable,
53+
'--force' => true,
54+
]);
55+
}
56+
});
4157
});
4258

4359
$configFileName = $package->shortName();

0 commit comments

Comments
 (0)