Skip to content

Commit

Permalink
Statamic addon packages don't need a statamic-addon type. Closes #1468
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Jun 9, 2020
1 parent 02ea584 commit 6cb077c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/Console/Commands/stubs/addon/composer.json.stub
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "dummy/package",
"type": "statamic-addon",
"autoload": {
"psr-4": {
"DummyNamespace\\": "src"
Expand Down
2 changes: 1 addition & 1 deletion src/Extend/Manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function build()
}

$this->write(collect($packages)->filter(function ($package) {
return array_get($package, 'type') === 'statamic-addon';
return Arr::has($package, 'extra.statamic');
})->keyBy('name')->map(function ($package) {
return $this->formatPackage($package);
})->filter()->all());
Expand Down
1 change: 0 additions & 1 deletion tests/Fakes/Composer/Package/PackToTheFuture.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public static function setVersion(string $version)
public static function setAddon(string $package, string $version)
{
static::generateComposerJson($package, $version, [
'type' => 'statamic-addon',
'autoload' => [
'psr-4' => [
'Statamic\\Providers\\' => 'src',
Expand Down

0 comments on commit 6cb077c

Please sign in to comment.