Skip to content

Conversation

@SBLMikeDemone
Copy link
Contributor

Overview
With the addition of the server-bindings, there needs to be updates to the logic that links types between modules. If something has a type from @minecraft/server-bindings and it depends on @minecraft/server, then that dependency should be changed to @minecraft/server and this PR enables that all the time.

Tech Overview
At filter time, the parent module (i.e. server-bindings) may not exist because it was merged with the base (i.e. server). I needed to add support for updating types' from_module from the parent to the base, even if the parent doesn't exist. So I store all the needed data on the base module.

Testing
I previously added support for this but it only worked if the base module and the parent module both existed (i.e. if --includeBase is set) but for regular invocations where the base module (i.e. server-bindings) is deleted, it wouldn't work. I added a test for both these cases to ensure linking types works.

@SBLMikeDemone SBLMikeDemone merged commit c4906fa into main Sep 4, 2025
3 checks passed
@SBLMikeDemone SBLMikeDemone deleted the mike.demone/fix-type-linking branch September 4, 2025 20:19
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.

3 participants