Skip to content

Commit

Permalink
Make api directory optional
Browse files Browse the repository at this point in the history
  • Loading branch information
HLeithner authored Jun 27, 2021
1 parent ab4f762 commit 2884391
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Tasks/Deploy/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,11 @@ public function createComponentZip()
}

$this->_copyDir($this->current . '/components', JPATH_BASE . $tmp_path . '/components');
$this->_copyDir($this->current . '/api', JPATH_BASE . $tmp_path . '/api');

if (file_exists($this->current . '/api'))
{
$this->_copyDir($this->current . '/api', JPATH_BASE . $tmp_path . '/api');
}

if (file_exists($this->current . '/media'))
{
Expand Down

0 comments on commit 2884391

Please sign in to comment.