a node module should be just runtime required code and LICENSE
Also, before packaging your Electron app use something like gulp to exclude problematic files like .md and anything else unnecessary.
There are other common tools like browserify that can still be leveraged.
a node module should be just runtime required code and LICENSE