Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Skip the `vpr` hint when the script runs the same built-in

オープン 初心者向け
#2,892 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@kshanxs がすでに取り組んでいます。

2026年10月9日 から。

  • #2965 @kshanxs による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
cli

調査の方向性

まず packages/cli/binding/src/cli/script_note.rs、特に has_package_json_script を確認し、既存のテストと呼び出し元を読みます。関連するCLIテストを実行し、スクリプトが正確に vp <same-command> の場合はヒントが省略される一方、vp test --coverage のようにスクリプトに引数が追加される場合はヒントが残ることを確認します。

索引モデルが issue の本文から書いたものです。

説明

pending triage
Description

The hint from #2243 shows even when the matching script just runs the same built-in:

{
	"scripts": {
		"test": "vp test"
	}
}
$ vp test
note: You are running `vp test` as a Vite+ built-in command. If you meant to run the test npm script, use `vpr test` instead.

vp test and vpr test do the same thing here, so the note is noise.

vp create generates "dev": "vp dev" (snapshot), so new projects show the note on vp dev.

The only way to avoid the note is to rename the script (e.g. test → test:unit).

Suggested solution

has_package_json_script already reads the script value (it checks is_string), so this only changes the condition: skip the hint when the script is exactly vp <same-command>. Keep it if the script adds arguments (e.g. vp test --coverage), since the two commands then differ.

Alternative

Add an option to turn off the hint.

Additional context

Reproduced on Vite+ v1.0.0. Source links point to main (1d549b9).

Validations
  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.
主要言語
Rust
スター
6k
フォーク
271
平均マージ
1日 12時間
マージ済み PR(30日)
198

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voidzero-dev/vite-plus のほかの issue

voidzero-dev/vite-plus の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。