voidzero-dev / voidzero-dev/vite-plus
Warn when the user install the local cli globally
- 主要言語
- Rust
- スター
- 5.8k
- フォーク
- 262
- 平均マージ
- 23時間 41分
- マージ済み PR(30日)
- 138
説明
### Description
For some persons who don't know Vite+ from the official website, they may easily run `npm -g install vite-plus` to install Vite+, but it is actually not the expected global CLI. Node management and other core features are missing.
### Suggested solution
Print a warning when Vite+ local cli package is installed globally.
### Alternative
N / A
### Additional context
N / A
https://discord.com/channels/1475973262193459293/1524301479794446488/1524365671620804659
### Validations
- [x] Read the [Contributing Guidelines](https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md).
- [x] Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- [x] Check that there isn't already an issue requesting the same feature.
コントリビューションガイド
調査の方向性
まず、`npm -g install vite-plus` に対する Vite+ のローカル CLI パッケージのインストールパスを特定し、その後、そのパッケージがグローバルインストールを検出する方法を確認します。グローバルインストールで、想定されるグローバル CLI が異なることを説明する明確な警告が表示され、通常のローカルインストールには影響しなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- node.js
- 領域
- cli, developer-experience
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 62/100