Electron-packager with server file

I want to use node-windows to create a windows service and use electron-packager to create the .exe file. However one I package my electron project I get an error when I run the exe, which I assume is due to the fact that it can’t fiind the serer.js file to install the service. What are some ways to solve this?