Skip to content

fix: read module replacements from mappings - #253

Merged
43081j merged 1 commit into
es-tooling:mainfrom
s0NRAYY:fix/which-module-replacements-v3
Sep 2, 2026
Merged

fix: read module replacements from mappings#253
43081j merged 1 commit into
es-tooling:mainfrom
s0NRAYY:fix/which-module-replacements-v3

Conversation

@s0NRAYY

@s0NRAYY s0NRAYY commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🔗 Linked issue

Fixes #252

📚 Description

npm run which crashes because it tries to read moduleReplacements, but that field does not exist in module-replacements v3.

This change reads the native and micro-utility mappings with Object.values() instead.

I did not use all because it also includes preferred replacements. In #84, the script was intentionally limited to native and micro-utility replacements so the progress number stays correct.

The README still recommends npm run which to contributors looking for a codemod to work on.

@43081j
43081j merged commit 8b1cbff into es-tooling:main Sep 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm run which crashes with module-replacements v3

3 participants