-
Notifications
You must be signed in to change notification settings - Fork 313
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
Reduce the installation size even more #1396
Conversation
CI failed, converting the PR to draft for now. |
c7d1953
to
a84b16b
Compare
a84b16b
to
1320ee0
Compare
@raineorshine Now CI has passed, the PR is ready for review. |
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.
Thanks so much!
/** Reverts a valid semver version to a pseudo version. NOOP If the original version was a valid semver version. */ | ||
const revertPseudoVersion = (current: string, latest: string) => | ||
flow(revertLeadingV(current), revertMissingMinorAndPatch(current), revertMissingPatch(current))(latest) | ||
return result | ||
} |
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'll accept this change, though a slightly preferable approach would have been to implement a simple flow function and preserve the existing structure of the code. (The currying was clearly unnecessary though.)
The PR follows #1394.
The PR reduces another 100 KiB from the installation size: