rsnext/examples/with-electron/package.json
Michael Novotny be3c804b8d
Fixes scripts in Electron examples. (#36133)
There were a few issues with the scripts in the Electron examples:

* `dist` and `pack-app` would fail without a `name` and `version` in `package.json`.
* `type-check` didn't work because there isn't a `tsconfig.json` at the root. It needs to look in the `electron-src` and `renderer` folders respectively.

`electron-builder` also needed to be updated in order to run on macOS 12.3+ (see https://github.com/electron-userland/electron-builder/issues/6606). 

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`


Co-authored-by: Lee Robinson <9113740+leerob@users.noreply.github.com>
2022-04-14 00:04:41 +00:00

30 lines
695 B
JSON

{
"private": true,
"productName": "ElectronNext",
"main": "main/index.js",
"scripts": {
"clean": "rimraf dist renderer/.next renderer/out",
"start": "electron .",
"build": "next build renderer && next export renderer",
"pack-app": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder"
},
"build": {
"asar": true,
"files": [
"main",
"renderer/out"
]
},
"devDependencies": {
"electron": "^12.0.2",
"electron-builder": "^23.0.3",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"dependencies": {
"electron-is-dev": "^1.1.0",
"electron-next": "^3.1.5"
}
}