Skip to content

Commit

Permalink
fix publish tags
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Sep 10, 2020
1 parent d2ebc63 commit 9f2a366
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/BazarServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,17 @@ protected function registerPublishes(): void
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/bazar.php' => config_path('bazar.php'),
], 'config');
], 'bazar-config');

$this->publishes([
__DIR__.'/../resources/img' => public_path('vendor/bazar/img'),
__DIR__.'/../resources/js' => resource_path('js/vendor/bazar'),
__DIR__.'/../resources/sass' => resource_path('sass/vendor/bazar'),
], 'assets');
], 'bazar-assets');

$this->publishes([
__DIR__.'/../resources/views' => resource_path('views/vendor/bazar'),
], 'views');
], 'bazar-views');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commands/PublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function handle(): int
return $this->call('vendor:publish', array_merge(
['--provider' => BazarServiceProvider::class],
$this->option('force') ? ['--force' => true] : [],
['--tag' => $this->option('tag') ?: ['assets', 'config']]
['--tag' => $this->option('tag') ?: ['bazar-assets', 'bazar-config']]
));
}
}

0 comments on commit 9f2a366

Please sign in to comment.