Skip to content

Commit a3f2cd1

Browse files
authoredAug 11, 2021
fix(electron-updater): fix import errors (#6140)
* fix(electron-updater): fix import errors for fs and path so that the test for admin privileges works correctly. Fixes #6134
1 parent c2916cf commit a3f2cd1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

Diff for: ‎.changeset/brave-plants-occur.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"electron-updater": patch
3+
---
4+
5+
fix(electron-updater): default import throws error for fs and path leading to always requiring elevation

Diff for: ‎packages/electron-updater/src/BaseUpdater.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from "fs"
2-
import path from "path"
1+
import * as fs from "fs"
2+
import * as path from "path"
33
import { AllPublishOptions } from "builder-util-runtime"
44
import { AppAdapter } from "./AppAdapter"
55
import { AppUpdater, DownloadExecutorTask } from "./AppUpdater"

0 commit comments

Comments
 (0)
Please sign in to comment.