Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open Beginner friendly
#2,892 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

Start with packages/cli/binding/src/cli/script_note.rs, especially has_package_json_script, and read its existing tests and callers. Run the relevant CLI tests, then verify the hint is skipped for an exact vp <same-command> script but remains when the script adds arguments, such as vp test --coverage.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Rust
Stars
6k
Forks
271
Avg merge
1d 15h
Merged PRs (30d)
172

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from voidzero-dev/vite-plus

All issues in voidzero-dev/vite-plus

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.