From 735b59c1d6b5d2cc5d985b5d7867c6a902ea0e78 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Thu, 7 Feb 2013 17:50:09 +0100 Subject: [PATCH] Skip the vendor dir when archiving the current project --- src/Composer/Command/ArchiveCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Composer/Command/ArchiveCommand.php b/src/Composer/Command/ArchiveCommand.php index 9a97289f8..2cd7e1f50 100644 --- a/src/Composer/Command/ArchiveCommand.php +++ b/src/Composer/Command/ArchiveCommand.php @@ -78,6 +78,11 @@ EOT } } else { $package = $this->getComposer()->getPackage(); + + // also ignore the vendor dir + $excludes = $package->getArchiveExcludes(); + $excludes[] = '/'.$this->getComposer()->getConfig()->get('vendor-dir'); + $package->setArchiveExcludes($excludes); } $io->write('Creating the archive.');