fix(migrate): tolerate nested npm overrides during bootstrap detection
@fengmk2 ci sta già lavorando.
Dal 1/7/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
detectVitePlusBootstrapPending assumes npm overrides values are strings, but npm supports nested override objects. A valid package.json such as this can throw during migration because the bootstrap detection calls string methods like .startsWith() on the override value:
{
"overrides": {
"vite": {
"rollup": "..."
}
}
}
Expected behavior:
- Migration should not crash when
overrides.viteoroverrides.vitestis a nested object. - Non-string override values should be treated as not satisfying the Vite+ override and then handled safely by the migration rewrite logic.
- Add a regression test covering a nested npm override under a managed key.
Suggested test:
Create an npm fixture with nested overrides:
{
"devDependencies": {
"vite-plus": "0.1.x"
},
"overrides": {
"vite": {
"rollup": "^4.0.0"
}
}
}
Run:
vp migrate --no-interactive
Assert that migration completes or reports an actionable migration error, but does not throw a TypeError from bootstrap detection.
- Lingua principale
- Rust
- Stelle
- 5.8k
- Fork
- 263
- Merge medio
- 1g 4h
- PR unite (30g)
- 148
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di voidzero-dev/vite-plus
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
voidzero-dev/vite-plus#2097 · 10 commenti · 2 reazioni ·
-
pending triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
voidzero-dev/vite-plus#2781 · 2 reazioni ·
-
enhancement
voidzero-dev/vite-plus#2766 · 4 commenti · 1 reazione · 1 assegnatario ·
-
enhancement
voidzero-dev/vite-plus#2764 · 3 commenti · 1 assegnatario ·
-
Revisit --no-type-check Apertapending triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
voidzero-dev/vite-plus#2735 ·
Tutte le issue di voidzero-dev/vite-plus
Issue simili
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
n0-computer/iroh#4550 ·
-
impl detach for native Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
paritytech/zombienet-sdk#591 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
farion1231/cc-switch#7638 · 1 commento ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100