Commit 375e843
authored
fix(cli): preserve intermediate directories when resolving nested file paths (#1607)
Fixes component installation paths for custom registries with additional
path levels. Previously, only the last segment of the common root was
preserved, causing intermediate directories to be lost.
Example:
- Before: components/ai-elements/artifact/Artifact.vue → artifact/Artifact.vue
- After: components/ai-elements/artifact/Artifact.vue → ai-elements/artifact/Artifact.vue
The function now uses the component alias from config to correctly resolve
paths for any custom registry structure, not just the default "components"
directory.1 parent 52a687f commit 375e843
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
427 | 444 | | |
428 | 445 | | |
429 | 446 | | |
| |||
0 commit comments