File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -114,13 +114,10 @@ All user-facing output must go through shared output modules instead of raw prin
114114
115115## Build
116116
117- - Run ` pnpm build: cli ` from the project root for normal local development
117+ - Run ` pnpm bootstrap- cli ` from the project root to build all packages and install the global CLI
118118 - This builds all ` @voidzero-dev/* ` and ` vite-plus ` packages
119- - Compiles the Rust ` vp ` and ` vite_trampoline ` binaries in ` debug `
120- - Uses only repo-local artifacts (` packages/cli/dist ` , ` packages/test/dist ` , ` target/debug/vp ` )
121- - Assumes the local ` rolldown/ ` and ` vite/ ` checkouts already exist; use ` just init ` or ` node packages/tools/src/index.ts sync-remote ` to prepare them
122- - Run ` pnpm bootstrap-cli ` only when you need to validate the global install flow
123- - This performs the release build and installs the CLI globally to ` ~/.vite-plus/ `
119+ - Compiles the Rust NAPI bindings and the ` vp ` Rust binary
120+ - Installs the CLI globally to ` ~/.vite-plus/ `
124121
125122## Snap Tests
126123
@@ -144,6 +141,4 @@ pnpm -F vite-plus snap-test-global
144141pnpm -F vite-plus snap-test-global < name-filter>
145142```
146143
147- Global CLI snap tests use the repo-local debug binary and do not require ` ~/.vite-plus/bin ` .
148-
149144The snap test will automatically generate/update the ` snap.txt ` file with the command outputs. It exits with zero status even if there are output differences; you need to manually check the diffs(` git diff ` ) to verify correctness.
Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ switch (subcommand) {
2626 installGlobalCli ( ) ;
2727 break ;
2828 case 'build-local-cli' :
29- const { runBuildLocalCli } = await import ( './local-cli.ts ' ) ;
29+ const { runBuildLocalCli } = await import ( './local-cli.js ' ) ;
3030 runBuildLocalCli ( process . argv . slice ( 3 ) ) ;
3131 break ;
3232 case 'local-cli' :
33- const { runLocalCli } = await import ( './local-cli.ts ' ) ;
33+ const { runLocalCli } = await import ( './local-cli.js ' ) ;
3434 runLocalCli ( process . argv . slice ( 3 ) ) ;
3535 break ;
3636 case 'snap-test-global-local' :
37- const { runLocalGlobalSnapTest } = await import ( './local-cli.ts ' ) ;
37+ const { runLocalGlobalSnapTest } = await import ( './local-cli.js ' ) ;
3838 runLocalGlobalSnapTest ( process . argv . slice ( 3 ) ) ;
3939 break ;
4040 case 'brand-vite' :
You can’t perform that action at this time.
0 commit comments