Skip to content

Commit 7884b50

Browse files
authored
fix: update check failing with TypeError (#5877)
since 22.11.1 the update check was failing with TypeError: update_notifier_1.default is not a function
1 parent 3e6c10f commit 7884b50

File tree

4 files changed

+42
-29
lines changed

4 files changed

+42
-29
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"dmg-license": "~1.0.8"
4141
},
4242
"devDependencies": {
43+
"@types/update-notifier": "^5.0.0",
4344
"@typescript-eslint/eslint-plugin": "^4.23.0",
4445
"@typescript-eslint/parser": "^4.23.0",
4546
"eslint": "^7.26.0",

packages/electron-builder/src/cli/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { pathExists, readJson } from "fs-extra"
77
import isCi from "is-ci"
88
import * as path from "path"
99
import { loadEnv } from "read-config-file"
10-
import updateNotifier from "update-notifier"
10+
import * as updateNotifier from "update-notifier"
1111
import { ExecError } from "builder-util/out/util"
1212
import { build, configureBuildCommand, createYargs } from "../builder"
1313
import { createSelfSignedCert } from "./create-self-signed-cert"

pnpm-lock.yaml

Lines changed: 40 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typings/updateNotifier.d.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)