-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: initial support for upgrading packages in devtools #134
Conversation
import { readPackageJSON } from 'pkg-types' | ||
import semver from 'semver' | ||
import { version as devToolsVersion } from '../../package.json' | ||
import type { UpdateInfo } from '../types' | ||
import { getPackageInfo } from 'local-pkg' |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
?
No description provided.