fix(migrate): tolerate nested npm overrides during bootstrap detection
@fengmk2 がすでに取り組んでいます。
2026年7月1日 から。
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- Rust
- スター
- 5.8k
- フォーク
- 263
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 148
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voidzero-dev/vite-plus のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
voidzero-dev/vite-plus#2097 · コメント 10 件 · リアクション 2 件 ·
-
pending triage
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
voidzero-dev/vite-plus#2781 · リアクション 2 件 ·
-
enhancement
voidzero-dev/vite-plus#2766 · コメント 4 件 · リアクション 1 件 · 担当者 1 名 ·
-
enhancement
voidzero-dev/vite-plus#2764 · コメント 3 件 · 担当者 1 名 ·
-
pending triage
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
voidzero-dev/vite-plus#2735 ·
voidzero-dev/vite-plus の issue をすべて見る
似ている issue
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
n0-computer/iroh#4550 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
paritytech/zombienet-sdk#591 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
farion1231/cc-switch#7638 · コメント 1 件 ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100