A few weeks ago I started on a new plugin. (It connects to my personal databases, so no reason to put it on github.)
I installed or updated all tools, followed the tutorial (created a plugin with
yo etc), but when I run
npm run dist, I always get the
Plugin archive was not created because the "dist" directory is empty error.
> npm run dist > firstname.lastname@example.org dist > webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive Plugin archive was not created because the "dist" directory is empty
The "dist" directory is, in fact, not empty: it contains both
index.js files. When I manually pack them up and rename the archive to
.jpl, I can import it into Joplin and it works.
But my previous attempts at plugins (which I no longer use) never had this problem; and I've been unable to fix it.
Did this happen to anyone else? Any idea on how to get rid of it?