Skip to content

Commit

Permalink
Skip preload-files scan for metapackages
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvermeyen committed May 24, 2023
1 parent 4bbbde8 commit 83246aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AutoloadGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ protected function parsePreloadFiles(Composer $composer, Filesystem $filesystem)
$otherPackages = $composer->getRepositoryManager()->getLocalRepository()->getCanonicalPackages();

foreach ($otherPackages as $package) {
if ( ! ($package instanceof CompletePackage)) {
if ( ! ($package instanceof CompletePackage) || strtolower($package->getType()) === 'metapackage') {
continue;
}

$packageBaseDir = $filesystem->normalizePath($installationManager->getInstallPath($package) ?? '');
$packageBaseDir = $filesystem->normalizePath($installationManager->getInstallPath($package));
$packageConfig = $package->getExtra();
$packagePreloadFiles = $packageConfig[$preloadFilesKey] ?? [];

Expand Down

0 comments on commit 83246aa

Please sign in to comment.