diff --git a/src/BuildProcess/ExtractVendorToSeparateDirectory.php b/src/BuildProcess/ExtractVendorToSeparateDirectory.php index db653d32..3628896e 100644 --- a/src/BuildProcess/ExtractVendorToSeparateDirectory.php +++ b/src/BuildProcess/ExtractVendorToSeparateDirectory.php @@ -23,27 +23,9 @@ public function __invoke() Helpers::step('Extracting Vendor Files'); - $this->ensureVendorDirectoryExists(); - (new Filesystem)->move( $this->appPath.'/vendor', $this->buildPath.'/vendor' ); } - - /** - * Ensure that the vendor directory exists. - * - * @return void - */ - protected function ensureVendorDirectoryExists() - { - if ($this->files->isDirectory($this->buildPath.'/vendor')) { - $this->files->deleteDirectory($this->buildPath.'/vendor'); - } - - $this->files->makeDirectory( - $this->buildPath.'/vendor', 0755, true - ); - } }