Skip to content

Commit d4ca449

Browse files
committed
fix: exclude nativephp from symlinked packages error
1 parent c67ccb8 commit d4ca449

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Commands/BundleCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +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 $repository) {
120-
if ($repository['type'] === 'path') {
119+
foreach ($composerJson['repositories'] ?? [] as $key => $repository) {
120+
121+
// Unless Eser is working on a PR ^^
122+
if ($repository['type'] === 'path' && ! in_array($key, ['nativephp-laravel', 'nativephp-electron'])) {
121123
$this->error('Symlinked packages are not supported. Please remove them from your composer.json.');
122124

123125
return false;

0 commit comments

Comments
 (0)