You publish to NPM and the script will pick it up and add it to the repo.
See - https://github.com/laurent22/joplin/tree/dev/packages/generator-joplin#publishing-the-plugin

2 Likes