It may not be clear.
That is, I now have an electron application (for example, ah), and then I want to publish it to npm.
But suddenly found that the usual operation is used
You can’t pack it
electron-packagerAfter that, the things will be handed out. . .
How should I write to enable users to
npm i -g ahIt is then called directly from the command line inside.
ahJust start this electron application?
My current solution is to change start’s script to
electron index.js. . .
Thank you ~
Just use your current method to solve it, use npm script.