Skip to content

Conversation

@sadeghbarati
Copy link
Collaborator

πŸ”— Linked issue

Close #1614

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Fixes nested file path resolution to work with all configured aliases
(components, lib, composables, etc.), preventing duplicate directory
segments during installation.

Previously, the function only checked the components alias, causing
files from other aliases to be resolved incorrectly:

  • lib/utils/cn.ts β†’ lib/cn.ts (installed to src/lib/lib/cn.ts)
  • composables/useCounter.ts β†’ composables/useCounter.ts (installed to src/composables/composables/useCounter.ts)

Now processes all aliases and matches the most specific one first:

  • lib/utils/cn.ts β†’ utils/cn.ts (installs to src/lib/utils/cn.ts)
  • composables/useCounter.ts β†’ useCounter.ts (installs to src/composables/useCounter.ts)
  • components/ai-elements/artifact/Artifact.vue β†’ ai-elements/artifact/Artifact.vue

πŸ“Έ Screenshots (if appropriate)

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Fixes nested file path resolution to work with all configured aliases
(components, lib, composables, etc.), preventing duplicate directory
segments during installation.
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 5, 2025

npm i https://pkg.pr.new/shadcn-vue@1615

commit: 3dd7238

@sadeghbarati sadeghbarati merged commit 8260b9e into dev Dec 5, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: init putting utils.ts in wrong path

2 participants