-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
docs: update declarationPath in addComponent
#33380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
Walkthrough
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
@nuxt/kit
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
CodSpeed Performance ReportMerging #33380 will not alter performanceComparing Summary
|
declarationPath property for Component declaration file pathsdeclarationPath in addComponent
|
@danielroe don't worry 👍. Thank you. About the other PR though, I see that it added This line assigns
- declarationPath: dir.declarationPath || filePath,
+ declarationPath: join(dir.declarationPath, _file) || filePathIf However, I have not encountered specific use cases for |
|
you make a good point. we should probably not support it for component dirs directly. |
🔗 Linked issue
Resolves #33374
📚 Description
Component.declarationPathpropertyresolveComponentTypes, retrieve module/component path fromComponent.declarationPathif provided, since it will be used to generate a type template.