fix(registry): resolve package.json registries when adding components (#11502)