fix(migrate): use latest @oxlint/migrate instead of pinning to oxlint version#751
Merged
fix(migrate): use latest @oxlint/migrate instead of pinning to oxlint version#751
Conversation
✅ Deploy Preview for viteplus-staging canceled.
|
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
fengmk2
commented
Mar 10, 2026
Brooooooklyn
approved these changes
Mar 10, 2026
52e230d to
b022994
Compare
…lint The `resolve()` helper searches `process.cwd()` first, which finds the user's project oxlint instead of vite-plus's bundled version. Use `createRequire(import.meta.url)` to always resolve from the CLI package's own dependencies, ensuring the @oxlint/migrate version matches the oxlint that vite-plus will actually use.
… version @oxlint/migrate publishes less frequently than oxlint, so pinning to the installed oxlint version (e.g. 1.52.0) can fail when that version of @oxlint/migrate doesn't exist yet. Use the latest version instead.
b022994 to
256babc
Compare
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.

Summary
@oxlint/migrate(latest) instead of pinning to the installed oxlint version@oxlint/migratepublishes less frequently thanoxlint, so when the catalog's^1.51.0resolves to1.52.0in a fresh install (no lockfile),@oxlint/migrate@1.52.0doesn't exist and the migration failsTest plan