Skip to content

Commit f00208d

Browse files
committed
fix: symlinked packages error
1 parent d4ca449 commit f00208d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Commands/BundleCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ private function checkComposerJson(): bool
116116
$composerJson = json_decode(file_get_contents(base_path('composer.json')), true);
117117

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

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

125125
return false;

0 commit comments

Comments
 (0)