Skip to content

Commit 7ea3476

Browse files
committed
Fix logger
1 parent 3354d08 commit 7ea3476

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

app/updater.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*/
1010
const { dialog } = require('electron')
1111
const { autoUpdater } = require('electron-updater')
12-
13-
autoUpdater.logger = require('electron-log')
12+
const logger = require('electron-log')
13+
autoUpdater.logger = logger
1414
autoUpdater.logger.transports.file.level = 'info'
1515

1616
let updater

package-lock.json

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"format": "prettier --write \"src/**/*\"",
1616
"build": "rimraf compiled && env-cmd cross-env TS_NODE_PROJECT=\"tsconfig-webpack.json\" webpack --mode production",
1717
"meta": "node scripts/meta.js",
18-
"prepack": "rimraf dist && npm run meta && electron-builder --dir",
18+
"prepack": "rimraf dist && env-cmd npm run meta && electron-builder --dir",
1919
"pack": "rimraf dist && env-cmd npm run meta && electron-builder",
20-
"release": "env-cmd electron-builder -- --publish",
20+
"release": "rimraf dist && env-cmd npm run meta && env-cmd electron-builder -- --publish",
2121
"test": "jest -c jest.json",
2222
"test:watch": "jest -c jest.json --watch",
2323
"tsc": "tsc --watch --noEmit"
@@ -60,7 +60,6 @@
6060
"css-loader": "^3.2.0",
6161
"electron": "^7.1.4",
6262
"electron-builder": "^21.2.0",
63-
"electron-log": "^4.0.0",
6463
"env-cmd": "^10.0.1",
6564
"error-overlay-webpack-plugin": "^0.4.1",
6665
"eslint": "^6.4.0",
@@ -99,6 +98,7 @@
9998
"copy-webpack-plugin": "^5.0.4",
10099
"cson-parser": "git+https://github.com/ButteryCrumpet/cson-parser.git",
101100
"dotenv": "^8.2.0",
101+
"electron-log": "^4.0.0",
102102
"electron-updater": "^4.2.0",
103103
"filenamify": "^2.1.0",
104104
"hast-util-sanitize": "^2.0.1",

0 commit comments

Comments
 (0)