/**
* Get the destination directory to build the package into.
*
* @return string The destination
*/
protected function getDestination()
{
$destination = $this->options['destination'];
if ($this->isRelativePath($destination)) {
return Context::getParam('project-root') . '/' . $destination;
}
return $destination;
}