Browse Source

Add missing LICENSE files from dependencies, fixes #3776

Jordi Boggiano 10 years ago
parent
commit
c573ae5781
1 changed files with 5 additions and 2 deletions
  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) {