Skip to content

Commit

Permalink
fix: update check failing with TypeError (#5877)
Browse files Browse the repository at this point in the history
since 22.11.1 the update check was failing with
TypeError: update_notifier_1.default is not a function
  • Loading branch information
csett86 authored May 11, 2021
1 parent 3e6c10f commit 7884b50
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 29 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"dmg-license": "~1.0.8"
},
"devDependencies": {
"@types/update-notifier": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"eslint": "^7.26.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-builder/src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { pathExists, readJson } from "fs-extra"
import isCi from "is-ci"
import * as path from "path"
import { loadEnv } from "read-config-file"
import updateNotifier from "update-notifier"
import * as updateNotifier from "update-notifier"
import { ExecError } from "builder-util/out/util"
import { build, configureBuildCommand, createYargs } from "../builder"
import { createSelfSignedCert } from "./create-self-signed-cert"
Expand Down
48 changes: 40 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions typings/updateNotifier.d.ts

This file was deleted.

0 comments on commit 7884b50

Please sign in to comment.