Merged
Conversation
Member
Author
91ed166 to
3b16db9
Compare
This was referenced Dec 17, 2025
3b16db9 to
8842612
Compare
c6a589b to
8f92600
Compare
88c168d to
f6f9576
Compare
8f92600 to
d2e3797
Compare
9d5a800 to
fe4caa0
Compare
d2e3797 to
18fa81a
Compare
90f3ff8 to
fda9731
Compare
fda9731 to
b24cfe6
Compare
18fa81a to
95db1ed
Compare
95db1ed to
d781438
Compare
b24cfe6 to
e9087f3
Compare
e9087f3 to
b68fc5e
Compare
51df143 to
be27764
Compare
96ffe79 to
7e188bb
Compare
be27764 to
6b51526
Compare
7e188bb to
9c6c683
Compare
6b51526 to
08ece1b
Compare
fengmk2
commented
Dec 24, 2025
08ece1b to
eb5aeab
Compare
9c6c683 to
6a53baa
Compare
eb5aeab to
4653d5e
Compare
Member
|
cursor review |
4653d5e to
a5ed6db
Compare
6a53baa to
6fb9939
Compare
Add file walker module and batch rewrite functionality to process all TypeScript/JavaScript files in a directory while respecting .gitignore rules. - Add `ignore` crate dependency for gitignore-aware directory walking - Create `file_walker.rs` module with `find_ts_files()` function - Add `BatchRewriteResult` struct for tracking modified/unchanged/error files - Add `rewrite_imports_in_directory()` function for batch processing - Export new public API: `find_ts_files`, `WalkResult`, `BatchRewriteResult`, `rewrite_imports_in_directory` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move import rewriting logic from vite_config.rs to import_rewriter.rs for better separation of concerns: - vite_config.rs: Now focused only on JSON config merging - import_rewriter.rs: Handles all import rewriting (vite/vitest → vite-plus) This makes the codebase more maintainable and the module names more accurately reflect their responsibilities. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add NAPI bindings for rewrite_imports_in_directory to expose the Rust batch import rewriting functionality to TypeScript. The migration command now rewrites vite/vitest imports in all TypeScript/JavaScript files, not just config files. Changes: - Add BatchRewriteResult and BatchRewriteError NAPI structs - Add rewriteImportsInDirectory NAPI function - Call rewriteAllImports in both standalone and monorepo migrations - Display progress showing modified files and any errors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
a5ed6db to
e7cebaf
Compare
6fb9939 to
317d019
Compare
…webdriverio Add rewrite rules for additional vitest browser packages: - @vitest/browser-preview → @voidzero-dev/vite-plus/test/browser-preview - @vitest/browser-webdriverio → @voidzero-dev/vite-plus/test/browser-webdriverio 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
e7cebaf to
7ea4cc7
Compare
Brooooooklyn
approved these changes
Dec 24, 2025
Member
Author
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.

Add support for rewriting imports from vite/vitest to @voidzero-dev/vite-plus across an entire project:
ignorecrate dependency for gitignore-aware directory walkingfile_walker.rsmodule withfind_ts_files()function to locate TypeScript/JavaScript filesimport_rewriter.rsmodule with comprehensive import rewriting rules:vite→@voidzero-dev/vite-plusvite/{name}→@voidzero-dev/vite-plus/{name}vitest→@voidzero-dev/vite-plus/testvitest/config→@voidzero-dev/vite-plusvitest/{name}→@voidzero-dev/vite-plus/test/{name}@vitest/browser→@voidzero-dev/vite-plus/test/browser@vitest/browser/{name}→@voidzero-dev/vite-plus/test/browser/{name}@vitest/browser-playwright→@voidzero-dev/vite-plus/test/browser-playwright@vitest/browser-playwright/{name}→@voidzero-dev/vite-plus/test/browser-playwright/{name}rewrite_imports_in_directory()function for batch processing all filesThis enables the migration command to automatically rewrite all imports in a project, making it much easier for users to migrate from vite/vitest to vite-plus.
Note
Introduces automated, project-wide import rewriting from
vite/vitest(incl. subpaths and@vitest/*) to@voidzero-dev/vite-plus.find_ts_files()invite_migration/file_walker.rsusingignoreto respect.gitignore/global/excludeimport_rewriter.rswith ast-grep rules coveringvite,vite/{name},vitest,vitest/config,vitest/{name}, and@vitest/...→ mapped@voidzero-dev/vite-plusequivalentsrewrite_imports_in_directory()from Rust and NAPI (rewriteImportsInDirectory), plusBatchRewriteResult/BatchRewriteErrortypes; addignore::Errortovite_error::Error@vitest/browser*Written by Cursor Bugbot for commit 4653d5e. This will update automatically on new commits. Configure here.