refactor(global): global cli completely independent#338
Conversation
dc5ffa9 to
712e3c4
Compare
712e3c4 to
c658c82
Compare
c658c82 to
d917590
Compare
There was a problem hiding this comment.
Pull request overview
This PR refactors the global CLI to be completely independent from the local CLI package. The main changes separate global commands (gen, migration, package manager utilities) from local commands (dev, build, test, lint, fmt, etc.) by introducing a new Rust binding layer for the global CLI and delegating local commands to the @voidzero-dev/vite-plus package when installed.
Key Changes:
- Introduced new Rust binding layer for global CLI with package manager detection, migration utilities, and command execution
- Split command routing to delegate local CLI commands (dev, build, test, lint, fmt, lib, doc, run) to the installed local CLI package
- Moved package manager selection logic from local CLI to shared
vite_installcrate - Updated import paths from
.tsto.jsextensions throughout the global package
Reviewed changes
Copilot reviewed 100 out of 116 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/global/binding/* | New Rust binding layer providing package manager detection, migration, and command execution capabilities |
| packages/global/src/index.ts | Updated routing logic to delegate local CLI commands vs global commands |
| packages/global/src/local/bin.ts | New module to auto-install and delegate to local CLI |
| packages/global/src/global/bin.ts | New entry point for global Rust commands |
| packages/global/src/utils/* | Updated imports and added package metadata detection utilities |
| packages/cli/binding/src/* | Removed duplicate code migrated to global or shared crates |
| crates/vite_install/* | Added package manager selection prompts moved from CLI binding |
| vite.config.ts | Updated test exclusion pattern to be more generic |
| package.json, justfile, .github/* | Build and CI configuration updates |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d917590 to
9584148
Compare
9584148 to
e3fe2fa
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 100 out of 116 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e3fe2fa to
67c4bca
Compare
67c4bca to
4ae86d3
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 101 out of 117 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4ae86d3 to
b4e29db
Compare
b4e29db to
5655019
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 101 out of 117 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
5655019 to
3a67a92
Compare

No description provided.