Electron-packager: Cannot find module 'electron-log'


I’ve problems to package my app with electron-packager. It throws an exception “Cannot find module electron-log”
I create the package like this:
electron-packager ./out/ my-app --asar --platform=win32 --arch=x64 --overwrite --ignore=\\.js\\.map --ignore=^/assets --ignore=^/custom-design --ignore=^/locales --out=dist

These are the dependencies in my package.json:

"dependencies": {
    "electron-localshortcut": "^3.1.0",
    "electron-log": "^3.0.7",
    "ini": "^1.3.5",
    "moment": "^2.24.0",
    "react": "^16.9.0",
    "react-dom": "^16.9.0",
    "react-intl": "^2.9.0",
    "react-scripts": "^3.1.1",
    "react-swipeable": "^5.4.0",
    "rimraf": "^2.7.1",
    "rxjs": "^6.5.2",
    "string-similarity": "^3.0.0",
    "xml2js": "^0.4.19",
    "zone.js": "^0.9.1"

The app is written in Typescript and I try to package the generated js code.
Any help appreciated.

Best regards

Ok, I kind of solved it. The problem is that I use Typescript. Typescript compiles the code into the out directory. I pack this directory, but of course it does not contain node_modules. Therefor my app.asar is without any modules.
Is there some standard approach how to use electron-packager with a Typescript app?