voidzero-dev / voidzero-dev/vite-plus
Warn for unsupported package manager flags instead of silently ignoring
- 主要言語
- Rust
- スター
- 5.8k
- フォーク
- 262
- 平均マージ
- 23時間 18分
- マージ済み PR(30日)
- 139
説明
### Description
`vp pm` is a package manager compatibility layer, since different underlying package managers can have some small differences. It is common to meet cases that there is a `--abc` flag can be passed to Xpm, but not to Ypm.
The current Vite+'s behavior is not united. It sometimes prints a warning (e.g. `--fix-lockfile`, `--offline`, `--latest`) but it also silently ignores some of them (e.g. `--workspace`, `--save-catalog`), which may make users confused.
### Suggested solution
We are supposed to show warnings for these cases instead of silently ignoring, it can help users or agents know how to use the package manager correctly.
As for the implementation, I think checking and writing all of them by hand can be a little bit troublesome. We'd better to find a way to check them unitedly or use Rust's language feature like macro or `Drop` trait to reduce complex works.
コントリビューションガイド
調査の方向性
`vp pm` パッケージマネージャー互換レイヤーから始め、サポート対象およびサポート対象外のフラグがどのように処理されるかを追跡し、既存の警告と、黙って無視されるフラグを比較します。サポート対象外のフラグが一貫して警告を生成し、サポート対象のフラグの動作を変更しなければ完了です。この issue では、具体的なファイルや実行すべきテストは特定されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- cli, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100