Files
moeka-project/apps
Makito 56bcfc793e fix(stage-tamagotchi): include install-electron in scripts to ensure electron (#2392)
## Description

Let `dev` and `start` scripts run `install-electron` before
`electron-vite`.

Electron 42 removed the `postinstall` script. The `electron` package now
downloads its binary on its `bin` entry's first run. `electron-vite`
reads `node_modules/electron/path.txt` directly, so it never starts that
download. A fresh install therefore fails with:

```
error during start dev server and electron app:
Error: Electron uninstall
    at getElectronPath (...)
    ...
```

`install-electron` runs the same code as the removed `postinstall`
script. It returns immediately when the binary is already present.
2026-08-29 02:13:45 +09:00
..
2026-08-26 20:13:10 +08:00