customrealms / cli

Command line tools for creating and compiling JavaScript Minecraft plugins.
https://customrealms.io
MIT License
7 stars 3 forks source link

feat: use 'main' from plugin.yml to specify typescript entrypoint #11

Closed connerdouglass closed 1 week ago

connerdouglass commented 1 week ago

This PR updates the crx build command to read from the plugin.yml file to determine the TypeScript entrypoint file for the plugin.

In Java plugins, the main field in plugin.yml is used to specify the classpath to the plugin's main class.

In CustomRealms plugins, this main field will instead be the relative path to the main TypeScript file for the plugin. The default will remain ./src/main.ts