My extension relies on a server-side verification script that needs NodeJS and has its own dependencies. Is there a best practice for bundling this external script to go alongside an extension, so that I could, for example, during my extension's development run yarn build and end up with a standalone dist of my script so that the Flarum server installing my extension only needs Node, and does not need npm/yarn to also install its dependencies?
Here's the offending code: https://github.com/Swader/flarum-web3address/blob/master/src/Listener/SaveUserWeb3Address.php#L28
Note that I must do this because there are no crypto functions in PHP for the stuff I'm trying to do. Once they're built, I'll change it all to be PHP-native.