Verdaccio doesn't automatically reload plugins when files change, making plugin development a bit painful. So here is my approach for a hot module reload in verdaccio, so that verdaccio restarts whenever your plugin changes.
-
Create a project folder and a subfolder
plugins
. Bootstrap the plugin in that folder using the generator so that you end up with something likeplugin/verdaccio-my-plugi/
folder structure. -
First, let's add a watch mode for your plugin (if you don't have it yet) by adding the following script to you
package.json
: Inplugin/verdaccio-my-plugin/package.json
"scripts": {