Skip to content

Commit

Permalink
Correctly update composer.json script as string
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Aug 7, 2024
1 parent e36a140 commit 7c26a5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/Task/Packages/UpdateTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ private function handleContaoRequirement(CloudChanges $definition): void
break;
}
}
} elseif (isset($json['scripts'][$group]) && 'Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication' === $json['scripts'][$group]) {
$json['scripts'][$group] = '@php vendor/bin/contao-setup';
}
}

Expand Down

0 comments on commit 7c26a5f

Please sign in to comment.