voidzero-dev / voidzero-dev/vite-plus

vp cli support --if-present

Open
#2,556 0 comments 0 reactions 0 assignees View on GitHub
pending triage
Dominant language
Rust
Stars
5.8k
Forks
261
Avg merge
1d 34m
Merged PRs (30d)
135

Description

### Description

Hello i would like to have the possibility to ignore missing script/task by using

`--if-present` flag.

What is the intended way to do it?

Should is prefer to use `vp pm run`?

Thank you

### Suggested solution

Add `--if-present` flag to run command

### Alternative

use `pm` command
however pm does not support `run` command

### Additional context

_No response_

### 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.

Contributor guide

Open the contributing guide

Research direction

Start by running the existing vp CLI run command and reading its command handling, then compare it with the mentioned vp pm run and pm command paths. Done means the run command accepts --if-present and ignores missing scripts or tasks without changing the existing behavior for present ones.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.