Commit 5ba62a3
committed
refactor: merge packages/global into packages/cli
Merge the global CLI package (vite-plus-cli) into the local CLI package
(vite-plus), consolidating two npm packages into one.
Key changes:
- Move global source files into packages/cli/src/ with renames to avoid
conflicts (global-entry.ts, global-utils/, global-types/)
- Merge NAPI binding crates (migration.rs, package_manager.rs,
global_utils.rs) into packages/cli/binding/
- Update rolldown config to bundle global entry with code splitting
- Update Rust binary to reference global-entry.js instead of index.js
- Update install scripts and wrapper.js for vite-plus package names
- Update publish-native-addons.ts to include Rust vp binary
- Remove packages/global/ entirely
- Update CI workflows and root scripts to remove global-specific steps
- Add snap-test-global script for running global CLI snap tests1 parent 6345b05 commit 5ba62a3
628 files changed
Lines changed: 614 additions & 2271 deletions
File tree
- .github
- actions/build-upstream
- workflows
- crates/vite_global_cli/src
- commands
- upgrade
- packages
- cli
- binding
- src
- bin
- rules
- snap-tests-global
- cli-helper-message
- command-add-npm10-with-workspace
- packages
- app
- utils
- command-add-npm10
- command-add-npm11-with-workspace
- packages
- app
- utils
- command-add-npm11
- command-add-pnpm10-with-workspace
- packages
- app
- utils
- command-add-pnpm10
- command-add-pnpm9-with-workspace
- packages
- app
- utils
- command-add-pnpm9
- command-add-yarn4-with-workspace
- packages
- admin
- app
- utils
- command-add-yarn4
- command-cache-npm10
- command-cache-pnpm10
- command-cache-yarn4
- command-config-npm10
- command-config-pnpm10
- command-config-yarn1
- command-config-yarn4
- command-dedupe-npm10
- command-dedupe-pnpm10
- command-dedupe-yarn4
- command-dlx-npm10
- command-dlx-pnpm10
- command-dlx-yarn4
- command-env-exec-shim-mode
- command-env-exec
- command-env-install-conflict
- conflict-pkg
- command-env-install-fail
- command-env-install-no-arg-fail
- command-env-install-no-arg
- command-env-install-node-version
- command-env-install-node-version-pkg
- command-env-install-version-alias
- command-env-install-version-alias-pkg
- command-env-use
- command-env-which
- command-install-auto-create-package-json
- command-install-bug-31
- packages/utils
- command-link-npm10
- command-link-pnpm10
- command-link-yarn4
- command-list-no-package-json
- command-list-npm10-with-workspace
- packages
- app
- utils
- command-list-npm10
- command-list-pnpm10-with-workspace
- packages
- app
- utils
- command-list-pnpm10
- command-list-yarn1
- command-list-yarn4
- command-outdated-npm10-with-workspace
- packages
- app
- utils
- command-outdated-npm10
- command-outdated-pnpm10-with-workspace
- packages
- app
- utils
- command-outdated-pnpm10
- command-outdated-yarn4
- command-owner-npm10
- command-owner-pnpm10
- command-owner-yarn1
- command-owner-yarn4
- command-pack-npm10-with-workspace
- packages
- app
- utils
- command-pack-npm10
- command-pack-pnpm10-with-workspace
- packages
- app
- utils
- command-pack-pnpm10
- command-pack-yarn4-with-workspace
- packages
- app
- utils
- command-pack-yarn4
- command-pm-no-package-json
- command-prune-npm10
- command-prune-pnpm10
- command-prune-yarn4
- command-publish-npm10
- command-publish-pnpm10
- command-publish-yarn1
- command-publish-yarn4
- command-remove-npm10-with-workspace
- packages
- app
- utils
- command-remove-npm10
- command-remove-pnpm10-with-workspace
- packages
- app
- utils
- command-remove-pnpm10
- command-remove-yarn4-with-workspace
- packages
- admin
- app
- utils
- command-remove-yarn4
- command-run-without-vite-plus
- command-unlink-npm10
- command-unlink-pnpm10
- command-unlink-yarn4
- command-update-npm10-with-workspace
- packages
- app
- utils
- command-update-npm10
- command-update-pnpm10-with-workspace
- packages
- app
- utils
- command-update-pnpm10
- command-update-yarn4-with-workspace
- packages
- app
- utils
- command-update-yarn4
- command-upgrade-check
- command-upgrade-rollback
- command-view-npm10
- command-view-pnpm10
- command-view-yarn1
- command-view-yarn4
- command-vpx-pnpm10
- command-why-npm10-with-workspace
- packages
- app
- utils
- command-why-npm10
- command-why-pnpm10-with-workspace
- packages
- app
- utils
- command-why-pnpm10
- command-why-yarn4
- dev-engines-runtime-pnpm10
- env-install-binary-conflict
- env-binary-conflict-pkg-a
- env-binary-conflict-pkg-b
- migration-agent-claude
- src
- migration-already-vite-plus
- migration-auto-create-vite-config
- migration-check
- migration-from-tsdown-json-config
- src
- migration-from-tsdown
- src
- migration-from-vitest-config
- migration-from-vitest-files
- test
- migration-lintstagedrc-json
- migration-lintstagedrc-not-support
- migration-merge-vite-config-js
- migration-merge-vite-config-ts
- migration-monorepo-pnpm-overrides-dependency-selector
- packages/app
- migration-monorepo-pnpm
- packages
- app
- only-oxlint
- utils
- migration-monorepo-skip-vite-peer-dependency
- packages/vite-plugin
- src
- migration-monorepo-yarn4
- packages
- app
- utils
- migration-no-agent
- src
- migration-not-supported-npm8.2
- migration-not-supported-pnpm9.4
- migration-not-supported-vite6
- migration-not-supported-vitest3
- migration-rewrite-declare-module
- src
- migration-skip-vite-dependency
- src
- migration-skip-vite-peer-dependency
- src
- migration-subpath
- foo
- new-check
- new-create-vite-with-scope-name
- new-create-vite
- new-vite-monorepo
- shim-inherits-parent-dev-engines-runtime
- packages/app
- shim-inherits-parent-engines-node
- packages/app
- shim-inherits-parent-node-version
- packages/app
- shim-pnpm-uses-project-node-version
- shim-recursive-npm-run
- shim-recursive-package-binary
- recursive-cli-pkg
- src
- create
- __tests__
- __snapshots__
- templates
- global-types
- global-utils
- local
- migration
- __tests__
- __snapshots__
- templates
- generator
- bin
- src
- monorepo
- global
- binding
- __tests__
- __snapshots__
- fixtures
- npm-monorepo
- npm-project
- pnpm-monorepo
- packages/foo
- src
- snap-tests-todo
- command-dlx-yarn1
- command-env-use-shell-wrapper
- local-cli-on-npm11-workspace
- packages/utils
- local-cli-on-pnpm10-workspace
- packages/utils
- local-cli-on-yarn4-workspace
- packages/utils
- new-create-tsdown
- snap-tests
- command-update-npm10-with-workspace/packages/utils
- command-update-pnpm10-with-workspace/packages/utils
- command-update-yarn4-with-workspace/packages/utils
- command-why-pnpm10-with-workspace
- migration-monorepo-skip-vite-peer-dependency
- tools/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
| |||
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
54 | | - | |
55 | 51 | | |
56 | 52 | | |
57 | 53 | | |
| |||
60 | 56 | | |
61 | 57 | | |
62 | 58 | | |
63 | | - | |
64 | 59 | | |
65 | 60 | | |
66 | 61 | | |
| |||
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
73 | | - | |
74 | 68 | | |
75 | 69 | | |
76 | 70 | | |
| |||
81 | 75 | | |
82 | 76 | | |
83 | 77 | | |
84 | | - | |
85 | 78 | | |
86 | 79 | | |
87 | 80 | | |
| |||
119 | 112 | | |
120 | 113 | | |
121 | 114 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | 115 | | |
126 | 116 | | |
127 | 117 | | |
128 | 118 | | |
129 | | - | |
| 119 | + | |
130 | 120 | | |
131 | 121 | | |
132 | 122 | | |
| 123 | + | |
133 | 124 | | |
134 | | - | |
| 125 | + | |
135 | 126 | | |
136 | | - | |
| 127 | + | |
137 | 128 | | |
138 | 129 | | |
139 | 130 | | |
140 | 131 | | |
141 | 132 | | |
142 | 133 | | |
143 | 134 | | |
144 | | - | |
145 | 135 | | |
146 | 136 | | |
147 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 97 | | |
106 | 98 | | |
107 | 99 | | |
| |||
132 | 124 | | |
133 | 125 | | |
134 | 126 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 127 | | |
144 | 128 | | |
145 | 129 | | |
| |||
194 | 178 | | |
195 | 179 | | |
196 | 180 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | 181 | | |
211 | 182 | | |
212 | 183 | | |
| |||
242 | 213 | | |
243 | 214 | | |
244 | 215 | | |
245 | | - | |
246 | 216 | | |
247 | 217 | | |
248 | 218 | | |
| |||
254 | 224 | | |
255 | 225 | | |
256 | 226 | | |
257 | | - | |
258 | 227 | | |
259 | 228 | | |
260 | 229 | | |
261 | 230 | | |
262 | 231 | | |
263 | 232 | | |
264 | | - | |
265 | 233 | | |
266 | 234 | | |
267 | 235 | | |
| |||
282 | 250 | | |
283 | 251 | | |
284 | 252 | | |
285 | | - | |
286 | 253 | | |
287 | 254 | | |
288 | 255 | | |
| |||
324 | 291 | | |
325 | 292 | | |
326 | 293 | | |
327 | | - | |
328 | 294 | | |
329 | 295 | | |
330 | 296 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
0 commit comments