Skip to content

Commit 528664b

Browse files
committed
avoid call if there are no packages
1 parent 00b25db commit 528664b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PackageJsonSynchronizer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ private function updateImportMap(array $importMapEntries): void
253253
throw new \InvalidArgumentException(sprintf('Invalid importmap entry: "%s".', var_export($importMapEntry, true)));
254254
}
255255

256+
if (!$remotePackageNameAndConstraints) {
257+
return;
258+
}
259+
256260
$this->scriptExecutor->execute(
257261
'symfony-cmd',
258262
'importmap:require',

0 commit comments

Comments
 (0)