Skip to content

Commit

Permalink
Pass tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Nov 6, 2024
1 parent 5a8649c commit 109317a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/StarterKits/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ function () {
*/
public function removeStarterKit(): self
{
if ($this->disableCleanup) {
if ($this->isAddon() || $this->disableCleanup) {
return $this;
}

Expand Down Expand Up @@ -589,7 +589,7 @@ protected function completeInstall(): self
*/
protected function removeRepository(): self
{
if ($this->fromLocalRepo || ! $this->url) {
if ($this->isAddon() || $this->fromLocalRepo || ! $this->url) {
return $this;
}

Expand Down Expand Up @@ -682,4 +682,12 @@ protected function config(?string $key = null): mixed

return $config;
}

/**
* Should starter kit be treated as a regular addon, and live on for future composer updates, etc?
*/
protected function isAddon(): bool
{
return (bool) $this->config('addon');
}
}

0 comments on commit 109317a

Please sign in to comment.