Skip to content
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

Removed circular dependencies #20734

Merged
merged 17 commits into from
Aug 28, 2024
Merged

Removed circular dependencies #20734

merged 17 commits into from
Aug 28, 2024

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Aug 23, 2024

No description provided.

@patricklx
Copy link
Contributor

patricklx commented Aug 23, 2024

You might also want #20723 for this:) it just enables eslint cycle import check. The plugin for it was already installed

@ef4
Copy link
Contributor Author

ef4 commented Aug 23, 2024

Yea, good idea, we should prevent new cycles from creeping in.

There is a spot in the rollup config where we could just fail the whole build if rollup sees a cycle.

ef4 added 4 commits August 26, 2024 09:38
This assertion was only added to satisfy typescript. It creates a module cycle and isn't worth it.
@ef4 ef4 marked this pull request as ready for review August 27, 2024 13:42
@ef4
Copy link
Contributor Author

ef4 commented Aug 27, 2024

Did a review with @kategengler and I have a few more minor changes and then this is good to go.

@ef4
Copy link
Contributor Author

ef4 commented Aug 28, 2024

I investigated the one proposed minor change, which was whether we should better hide these newly created modules from outside consumers, but that would not be consistent with how these packages are already published. Only a few (like @ember/-internals) get rollup up before publication.

@ef4 ef4 merged commit d68bf5e into main Aug 28, 2024
24 checks passed
@ef4 ef4 deleted the circularity branch August 28, 2024 13:44
@ef4 ef4 mentioned this pull request Aug 28, 2024
@ef4 ef4 changed the title working to remove circular dependencies Removed circular dependencies Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants