-
Notifications
You must be signed in to change notification settings - Fork 52
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
fix: Inconsistent named feature arrays. #69
Conversation
The tests are failing. I hope to fix it over the weekend. |
src/utils/generator.ts
Outdated
@@ -546,7 +546,7 @@ export function adjustBarrelIndex( | |||
} | |||
} | |||
|
|||
if (type === "component" || type === "service") { | |||
if (type === "component" || type === "service" || type === "directive" || type === 'pipe') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m-abs thank you for this PR and good catch. This is the only change I’m not so sure about. There’s really never a case I’ve run into where I need the directive or pipe symbol exported from the barrel which is why this was just component and service since those are often used for various reasons. Curious what your reasons are for this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly it was to be consistent with components, like here: https://github.com/nstudio/xplat/blob/master/src/feature/_nativescript_component_files/components/index.ts#L7
We sometimes use pipes in code, so it makes sense to have those exposed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it from directives but kept it for pipes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m-abs perfect thanks! That makes sense for pipes yeah since can be used as provider where needed.
Fixes: #68