-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: add CI check to ensure consistent exports for MDC packages #20960
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
ce9c1d0 to
f0149c8
Compare
| export { | ||
| MAT_FORM_FIELD, | ||
| MatFormFieldControl, | ||
| getMatFormFieldDuplicatedHintError, |
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.
Hmm, these don't have an underscore but they are @docs-private. They really shouldn't have been part of the public API... @jelbourn do you think we can skip re-exporting @docs-private stuff?
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 think that we have things like this in a bunch of packages, but we just have to live with it and eventually deprecate them.
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.
Same, if we decide to keep these we should at least move them under a TODO to get rid of them later
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.
Yeah, at this point anything without an underscore would have to go through the normal process. I would like to explore removing "library internal" symbols from our npm packages via transformation at some point, but that's probably not going to happen soon.
f0149c8 to
33cc7ff
Compare
|
@mmalerba I've added a config file to allow for tests to be skipped and excluded all of the underscored classes. |
ef6d232 to
f806435
Compare
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.
LGTM
| export { | ||
| MAT_FORM_FIELD, | ||
| MatFormFieldControl, | ||
| getMatFormFieldDuplicatedHintError, |
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.
Yeah, at this point anything without an underscore would have to go through the normal process. I would like to explore removing "library internal" symbols from our npm packages via transformation at some point, but that's probably not going to happen soon.
ec2c9c7 to
a62d816
Compare
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.
LGTM
Adds a new script that checks whether an MDC package exports the same set of symbols as its non-MDC counterpart. Also fixes all of the failures.
a62d816 to
34b2be1
Compare
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adds a new script that checks whether an MDC package exports the same set of symbols as its non-MDC counterpart. Also fixes all of the failures.