Skip to content

Conversation

@commandblock2
Copy link
Contributor

@commandblock2 commandblock2 commented May 31, 2025

Hi @1zun4, the experimental typescript support pr should be almost ready, there is another in-draft pr for LiquidBounce at CCBlueX/LiquidBounce#6115. If no further significant changes should be made, I will start refining the PR for LB and possibly the pipeline for generating the definitions.

Edit: the compiled script in dist can only be loaded if the #6115 pr is merged, or can only be tested on that branch

The doc is mostly written by claude but I have read it over and corrected some details.
I have tested the doc with claude-sonnet-3.7-thinking in cline(roo), it was able to setup a development environment with current imperfect definitions working as intended with the following prompt.


@/Experimental\ TypeScript\ Support.md Can you follow this and setup a project with typescript support, assuming the package is already downloaded and extracted at ~/jvm-types, we are already at lb-typescript-scripts(actually another one, but just skip this). Ignore the hot reload settings but do use tsc --watch.


roo_task_may-31-2025_10-04-56-pm.md

@commandblock2
Copy link
Contributor Author

Also do you think it would make sense if we publish our generated definitions to npm registry? would it be just too risky (legally) for that? And publish as whom?

@1zun4
Copy link
Member

1zun4 commented Jun 2, 2025

As long as it's yarn it's safe to do so. It doesn't contain any code by Mojang and is only a JS representative of the existing yarn mappings.

@commandblock2 commandblock2 force-pushed the experimental-typescript-support-in-script-api branch from 8d6fe7a to 4142f3d Compare June 10, 2025 16:26
@commandblock2 commandblock2 force-pushed the experimental-typescript-support-in-script-api branch 3 times, most recently from 784426c to b487916 Compare June 10, 2025 16:38
@commandblock2 commandblock2 force-pushed the experimental-typescript-support-in-script-api branch from b487916 to 0d2d6b6 Compare June 10, 2025 16:41
@1zun4
Copy link
Member

1zun4 commented Oct 18, 2025

Hi, when can this be merged?

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