Skip to content

docs(create-vite): list overwrite flag in help#22262

Open
grzdev wants to merge 1 commit intovitejs:mainfrom
grzdev:fix/create-vite-overwrite-help
Open

docs(create-vite): list overwrite flag in help#22262
grzdev wants to merge 1 commit intovitejs:mainfrom
grzdev:fix/create-vite-overwrite-help

Conversation

@grzdev
Copy link
Copy Markdown

@grzdev grzdev commented Apr 18, 2026

Summary

  • add the supported --overwrite flag to create-vite --help
  • add a small CLI test assertion so the help output keeps listing it

Problem

create-vite already parses --overwrite and has behavior coverage for using it with a non-empty target directory, but the flag was missing from the hand-written help output.

That made a supported option harder to discover from create-vite --help.

Fix

  • add --overwrite to the help text in packages/create-vite/src/index.ts
  • add a CLI test assertion to ensure the help output includes it

Verification

pnpm --filter=./packages/create-vite run build
node packages/create-vite --help
pnpm exec oxfmt --check packages/create-vite/src/index.ts packages/create-vite/__tests__/cli.spec.ts
pnpm exec vitest run packages/create-vite/__tests__/cli.spec.ts
git diff --check -- packages/create-vite/src/index.ts packages/create-vite/__tests__/cli.spec.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant