Skip to content

Conversation

SBLMikeDemone
Copy link
Contributor

@SBLMikeDemone SBLMikeDemone commented Jul 14, 2025

Problem
Parent modules (like @minecraft/server-editor-bindings) are merged into base modules (like @minecraft/server-editor) but the native packages that take a dependency on types within the parent module still reference the base module which mean we can publish types or docs that rely on bindings modules which don't actually exist except internally.

Solution
Change the metadata in the generator so that if a module depends on a base module, all references are updated from the parent module to the base module.

@SBLMikeDemone SBLMikeDemone marked this pull request as draft July 14, 2025 22:42
@SBLMikeDemone
Copy link
Contributor Author

SBLMikeDemone commented Jul 14, 2025

Putting this back in draft while I iterate on it. The initial implementation didn't quite reflect what I intended, I'd like to make it so we only use the base module if we rely on the base module.

Edit: Opened back up and updated the description

@SBLMikeDemone SBLMikeDemone marked this pull request as ready for review July 14, 2025 22:52
@SBLMikeDemone SBLMikeDemone changed the title Make modules depend on base modules instead of parent modules Update from_module to use the base module if it is a dependency Jul 14, 2025
@SBLMikeDemone SBLMikeDemone merged commit 362497d into main Jul 17, 2025
2 checks passed
@SBLMikeDemone SBLMikeDemone deleted the mike.demone/set-imports-to-parent-module branch July 17, 2025 16:39
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