To build and publish the package the following tools need to be installed locally:
Run the following command:
yarn build
This will download the artifact org.apache.activemq:artemis-plugin and unpack the plugin js files into target/ directory. It will then compile them into dist/artemis-plugin.<hash>.js.
Once build is successful, make sure to update the main field in package.json with the output file name under dist/, as the content hash changes at each build.
"main": "dist/artemis-plugin.3da31335.js",To publish the npm package, run the following command:
yarn publish
Once successfully published, make sure to push the published tag to the repository:
git push origin master --tags