I've created my own plugin in OctoberCMS. Some of my plugin's features make use of JavaScript, which can be put in author/plugin/assets/js
folder and added to a plugin component by using the addJs
function as described in the docs. You can even combine your plugin's JS files like this.
That's all good, but my plugin is making use of some external JS libraries. I know I can install them with npm in my site theme, but then my plugin wouldn't work for anyone using a theme that didn't install those libraries.
So what I'm asking is: How can I include npm dependencies in my plugin?