Commit 0af68ff
authored
test: install local vite-plus builds through a local npm registry (#2021)
Serve the locally packed `vite-plus` / `@voidzero-dev/vite-plus-core`
through a local npm registry
(`packages/tools/src/local-npm-registry.ts`), so tests and local
development install the checkout's own build via the standard registry
interface instead of published-version pins or `file:` specs.
- Snap install fixtures: the harness packs the checkout once per run
(`localVitePlusPackages` in `steps.json`) and wraps commands with `node
$SNAP_LOCAL_REGISTRY -- vp ...`. Removes the `VP_VERSION=0.2.1` pins
from #2017, so release branches pass before the version is published.
- Ecosystem e2e and `Test vp create`: one registry server per job (env
via `GITHUB_ENV`), real semver `VP_VERSION`, standard
`npm:@voidzero-dev/vite-plus-core` alias for every package manager.
Removes the `file:` overrides, the post-migrate package.json rewrite,
the bun `vite-7.99.0` alias tgz, and the `repack-vite-tgz` tool.
- Local development: `node
<repo>/packages/tools/src/local-npm-registry.ts --pack -- vp migrate
--no-interactive` verifies migrate/create logic right after a build
(about 16s instead of the 30 minute pkg.pr.new + registry-bridge
round-trip). `--serve` keeps a reusable server; `pnpm local-registry:ps`
/ `:kill` manage leftovers. See CONTRIBUTING.md.
Local packages are served as an overlay on the upstream packument (local
version wins, upstream versions and `time` stay visible for lockfile
verification), with integrity computed over the exact bytes served and
an old publish time so minimum-release-age gates pass. Everything else
proxies upstream. All snap fixtures regenerate byte-identical, and the
full CI matrix (snap shards, ecosystem projects including dify and bun,
16 `vp create` jobs) is green on this flow.
Closes #20181 parent 53edee8 commit 0af68ff
59 files changed
Lines changed: 1026 additions & 465 deletions
File tree
- .github/workflows
- ecosystem-ci
- packages
- cli
- snap-tests-global
- create-framework-shim-astro
- create-framework-shim-vue
- migration-framework-shim-astro-vue
- migration-framework-shim-astro
- migration-framework-shim-vue
- migration-standalone-npm
- migration-standalone-pnpm
- snap-tests
- create-approve-builds-bun
- create-approve-builds-migrate-pnpm11
- create-approve-builds-pnpm11
- create-approve-builds-yarn
- create-org-bundled-dotfiles
- create-org-bundled-escape-check
- create-org-bundled-monorepo
- create-org-bundled
- create-org-config-default
- create-org-invalid-manifest
- create-org-monorepo-direct-in-monorepo
- create-org-monorepo-filter
- create-org-no-interactive-error
- migration-standalone-bun-install
- src/migration/migrator
- 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 | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
157 | 162 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 163 | | |
177 | 164 | | |
178 | 165 | | |
| |||
476 | 463 | | |
477 | 464 | | |
478 | 465 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
483 | 471 | | |
484 | 472 | | |
485 | | - | |
| 473 | + | |
486 | 474 | | |
487 | 475 | | |
488 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | 111 | | |
127 | 112 | | |
128 | 113 | | |
| |||
179 | 164 | | |
180 | 165 | | |
181 | 166 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
189 | 171 | | |
190 | | - | |
| 172 | + | |
191 | 173 | | |
192 | 174 | | |
193 | 175 | | |
| |||
221 | 203 | | |
222 | 204 | | |
223 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
224 | 232 | | |
225 | 233 | | |
226 | | - | |
227 | | - | |
228 | 234 | | |
229 | 235 | | |
230 | 236 | | |
| |||
334 | 340 | | |
335 | 341 | | |
336 | 342 | | |
337 | | - | |
| 343 | + | |
338 | 344 | | |
339 | 345 | | |
340 | 346 | | |
| |||
459 | 465 | | |
460 | 466 | | |
461 | 467 | | |
462 | | - | |
463 | | - | |
| 468 | + | |
| 469 | + | |
464 | 470 | | |
465 | 471 | | |
466 | | - | |
467 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
468 | 477 | | |
469 | 478 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
474 | 485 | | |
475 | 486 | | |
476 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
101 | 124 | | |
102 | 125 | | |
103 | 126 | | |
| |||
0 commit comments