refactor(cli): replace semver usage with verkit - #2837
Open
liangmiQwQ wants to merge 1 commit into
Open
liangmiQwQ wants to merge 1 commit into
liangmiQwQ wants to merge 1 commit into
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
liangmiQwQ
marked this pull request as ready for review
September 27, 2026 13:48
semver usage with verkit
Collaborator
Author
|
cc @sxzz |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR replaces direct
semverusage in the CLI and repository tools with verkit (made by @ sxzz). Named ESM imports let the CLI build tree-shake unused version APIs. Building Vite+ withpnpm -F vite-plus build-tsbefore and after this change reduces the combined size ofpackages/cli/dist/*.jsby 26,079 B (from 1,303,781 B to 1,277,702 B, uncompressed).Built-in TypeScript declarations remove the direct
@types/semverdependency. Range handling now usesrangeToComparatorsinstead of readingRangeinternals, and coerced versions use plain records, making the call sites easier to maintain. Existing prerelease options are preserved; the core package retainssemverfor bundled upstream consumers.🤖 Generated with Codex