Skip to content

feat: add empty module validation #4794

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

vitorsouzaalmeida
Copy link
Contributor

Fix #4093
Prevent publishing packages with empty modules and emit warnings during compilation when modules contain no public definitions.

@vitorsouzaalmeida vitorsouzaalmeida marked this pull request as draft July 21, 2025 12:50
@vitorsouzaalmeida vitorsouzaalmeida marked this pull request as ready for review July 21, 2025 12:55
@vitorsouzaalmeida
Copy link
Contributor Author

I'm not sure about this test-wasm CI error, but checking for passed PRs like #4791 I think it may be something related to my changes so I will check it

@vitorsouzaalmeida
Copy link
Contributor Author

vitorsouzaalmeida commented Jul 21, 2025

BTW, a good thing would be to add some files like CHANGELOG.md to not trigger all CI checks. All CI tasks are running again because I changed the CHANGELOG.md

@vitorsouzaalmeida
Copy link
Contributor Author

By checking this PR, I think I should add my changes to Unreleased?

@vitorsouzaalmeida vitorsouzaalmeida force-pushed the feat/empty-module-validation branch from 41e93ec to 45590fc Compare July 21, 2025 13:39
@giacomocavalieri
Copy link
Member

By checking this PR, I think I should add my changes to Unreleased?

Yeah!

@vitorsouzaalmeida
Copy link
Contributor Author

Hey @giacomocavalieri
I've just moved my changelog to file bottom and it's already under Compiler changes - which is under Unreleased.

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! I've left some small comments inline

@vitorsouzaalmeida
Copy link
Contributor Author

I've just updated the code @lpil

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.

Prevent publishing packages with empty modules.
3 participants