mage-os / generate-mirror-repo-js

Mage-OS packaging implementation (JavaScript).
BSD 3-Clause "New" or "Revised" License
11 stars 13 forks source link

fix: set package replace value by original package name #169

Closed rhoerr closed 3 months ago

rhoerr commented 3 months ago

Fixes a regression in #154 where package name gets changed from magento/... to {vendor}/... before checking it against the replaceVersionMap. This causes it to find no match, because replaceVersionMap contains only magento/... package names.

This fixes it by recording the original package name before composer.name = setMageOsVendor(..., and using that for the map check.