Skip to content

Commit

Permalink
fix(electron-updater): fix import errors (#6140)
Browse files Browse the repository at this point in the history
* fix(electron-updater): fix import errors for fs and path so that the test for admin privileges works correctly. Fixes #6134
  • Loading branch information
burnhamup committed Aug 11, 2021
1 parent c2916cf commit a3f2cd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-plants-occur.md
@@ -0,0 +1,5 @@
---
"electron-updater": patch
---

fix(electron-updater): default import throws error for fs and path leading to always requiring elevation
4 changes: 2 additions & 2 deletions packages/electron-updater/src/BaseUpdater.ts
@@ -1,5 +1,5 @@
import fs from "fs"
import path from "path"
import * as fs from "fs"
import * as path from "path"
import { AllPublishOptions } from "builder-util-runtime"
import { AppAdapter } from "./AppAdapter"
import { AppUpdater, DownloadExecutorTask } from "./AppUpdater"
Expand Down

0 comments on commit a3f2cd1

Please sign in to comment.