feat: initial support for upgrading packages in devtools by antfu · Pull Request #134 · nuxt/devtools
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be helpful if we expose such utility from nypm? (i also probably need it also for both CLI and layer handling dep-resolution)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be happy to! One caveat is that in local-pkg, I manually wrote the code for CJS and ESM separately, as the resolution algorithms are a bit different. Which means it can not be bundled. Not sure if we could find a better isomorphic solution, otherwise are you considering this acceptable?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Let me check local-pkg and be back to you. Have you tried mlly.resolvePath with conditions?