Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(cli): make cleanGlobalCLIOptions() clean --force #19999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025

Conversation

MoperMop
Copy link
Contributor

@MoperMop MoperMop commented May 4, 2025

Description

Currently cleanGlobalCLIOptions() does not clean the force option, causing server.options.server.force to be set to true when using the --force flag, despite how server.force isn't supposed to be part of the API. I've created a repo to easily demonstrate the issue here.

It seems like at one point server.force was a part of the API, so not cleaning it was intentional. However, as the code evolved this was overlooked.

@sapphi-red sapphi-red added the p1-chore Doesn't change code behavior (priority) label May 7, 2025
@sapphi-red
Copy link
Member

/ecosystem-ci run

Copy link

pkg-pr-new bot commented May 7, 2025

Open in StackBlitz

npm i https://pkg.pr.new/vite@19999

commit: 2f9ad60

@vite-ecosystem-ci
Copy link

@sapphi-red sapphi-red merged commit d4a171a into vitejs:main May 7, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p1-chore Doesn't change code behavior (priority) trigger: preview
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants