Преглед изворни кода

Add missing LICENSE files from dependencies, fixes #3776

Jordi Boggiano пре 10 година
родитељ
комит
c573ae5781
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      src/Composer/Compiler.php

+ 5 - 2
src/Composer/Compiler.php

@@ -102,10 +102,13 @@ class Compiler
         $finder->files()
             ->ignoreVCS(true)
             ->name('*.php')
+            ->name('LICENSE')
             ->exclude('Tests')
+            ->exclude('tests')
+            ->exclude('docs')
             ->in(__DIR__.'/../../vendor/symfony/')
-            ->in(__DIR__.'/../../vendor/seld/jsonlint/src/')
-            ->in(__DIR__.'/../../vendor/justinrainbow/json-schema/src/')
+            ->in(__DIR__.'/../../vendor/seld/jsonlint/')
+            ->in(__DIR__.'/../../vendor/justinrainbow/json-schema/')
         ;
 
         foreach ($finder as $file) {