mirror of
https://github.com/strapi/strapi.git
synced 2026-06-02 16:27:47 +00:00
411bb86bed
* fix(upgrade): simplify registry URL resolution * fix(upgrade): handle Yarn Classic registry config - Add yarn version detection to use correct config key - Yarn v1 uses 'registry', Yarn v2+ uses 'npmRegistryServer' - Guard against literal 'undefined' string from Yarn v1 - Add tests for Yarn v1 and v2+ registry detection * fix(upgrade): extract normalizeRegistryOutput helper Move registry stdout validation into a shared helper and tighten registry URL determination tests. --------- Co-authored-by: Ben Irvin <ben@innerdvations.com>