Skip to content

Commit

Permalink
Merge pull request #19 from hotwired-laravel/fix-importmap-installs
Browse files Browse the repository at this point in the history
Fix importmap package installation
  • Loading branch information
tonysm authored Nov 24, 2023
2 parents eac587f + 7f7ea1b commit 3f06544
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/Concerns/InstallsForImportmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ protected function registerImportmapPins()
$this->components->task('pinning JS dependency (importmap)', function () {
$this->callSilently('importmap:pin', [
'packages' => collect($this->jsPackages())
->map(fn ($package, $version) => "{$package}@{$version}")
->map(fn ($version, $package) => "{$package}@{$version}")
->values()
->all(),
]);

Expand Down

0 comments on commit 3f06544

Please sign in to comment.