Skip to content

Commit

Permalink
fix: symlinked packages error
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Jan 29, 2025
1 parent d4ca449 commit f00208d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Commands/BundleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ private function checkComposerJson(): bool
$composerJson = json_decode(file_get_contents(base_path('composer.json')), true);

// Fail if there is symlinked packages
foreach ($composerJson['repositories'] ?? [] as $key => $repository) {
foreach ($composerJson['repositories'] ?? [] as $repository) {

// Unless Eser is working on a PR ^^
if ($repository['type'] === 'path' && ! in_array($key, ['nativephp-laravel', 'nativephp-electron'])) {
$symlinked = $repository['options']['symlink'] ?? true;
if ($repository['type'] === 'path' && $symlinked) {
$this->error('Symlinked packages are not supported. Please remove them from your composer.json.');

return false;
Expand Down

0 comments on commit f00208d

Please sign in to comment.