fix(create-vite): fix installing dependencies#20826
Merged
sapphi-red merged 5 commits intovitejs:mainfrom Sep 23, 2025
Merged
Conversation
bluwy
reviewed
Sep 23, 2025
Member
bluwy
left a comment
There was a problem hiding this comment.
A bit nitpicky, but I think I'd modify this part as something like this instead:
vite/packages/create-vite/src/index.ts
Lines 381 to 384 in 0021527
const [pm, ...args] = getInstallCommand(agent)
run(pm, args, ...)
sapphi-red
reviewed
Sep 23, 2025
Member
It's probably because the install itself is skipped in the tests 🙈 vite/packages/create-vite/src/index.ts Lines 375 to 380 in 2a0cb57 |
Contributor
Author
|
Uh linting is failing, give me a second... I was editing through GitHub rather than locally 😅 |
Member
|
Ah, I've fixed it 🫡 (saw the comment after doing it) |
Contributor
Author
|
Thanks for fixing it up! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #20823, #20824
This PR does not add tests. There seems to be already tests for this (
vite/packages/create-vite/__tests__/cli.spec.ts
Lines 254 to 269 in 0021527