Skip to content

fix(generate): do not clobber components alias on --dir - #28

Merged
johnleider merged 1 commit into
mainfrom
fix/generate-dir-alias
Aug 8, 2026
Merged

fix(generate): do not clobber components alias on --dir#28
johnleider merged 1 commit into
mainfrom
fix/generate-dir-alias

Conversation

@johnleider

Copy link
Copy Markdown
Member

Summary

vuetify generate Foo --dir src/components/ui was rewriting vuetify.json aliases.components to that path, so subsequent add / refresh landed under ui/….

--dir is now one-shot; only the default components location updates the alias.

Found while walking the CLI guide against a live registry before merging docs PR vuetifyjs/0#794.

Test plan

  • generate MyCard then generate Btn --dir src/components/ui → alias stays src/components
  • refresh dialog still writes src/components/dialog

Explicit --dir is a one-shot destination. Updating aliases.components
caused later add/refresh to write under that path (e.g. ui/dialog).
@johnleider
johnleider merged commit 6eb0ef4 into main Aug 8, 2026
1 check passed
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