Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Run linter

Manav Rathi15473d80d81b
diff --git a/desktop/package.json b/desktop/package.json
index e55117505f..f01b0c0838 100644
--- a/desktop/package.json
+++ b/desktop/package.json
@@ -8,11 +8,11 @@
"main": "app/main.js",
"scripts": {
"build": "yarn build-renderer && yarn build-main",
- "build:ci": "yarn build-renderer && tsc",
- "build:quick": "yarn build-renderer && yarn build-main:quick",
"build-main": "tsc && electron-builder",
"build-main:quick": "tsc && electron-builder --dir --config.compression=store --config.mac.identity=null",
"build-renderer": "cross-env-shell _ENTE_IS_DESKTOP=1 \"cd ../web && yarn install && yarn build:photos && cd ../desktop && shx rm -rf out && shx cp -r ../web/apps/photos/out out\"",
+ "build:ci": "yarn build-renderer && tsc",
+ "build:quick": "yarn build-renderer && yarn build-main:quick",
"dev": "concurrently --kill-others --success first --names 'main,rndr' \"yarn dev-main\" \"yarn dev-renderer\"",
"dev-main": "tsc && electron .",
"dev-renderer": "cross-env-shell _ENTE_IS_DESKTOP=1 \"cd ../web && yarn install && yarn workspace photos next dev -p 3008\"",
diff --git a/desktop/src/main/stream.ts b/desktop/src/main/stream.ts
index 261ab32a21..9c23b49630 100644
--- a/desktop/src/main/stream.ts
+++ b/desktop/src/main/stream.ts
@@ -125,7 +125,12 @@ const handleReadZip = async (zipPath: string, entryName: string) => {
const { writable, readable } = new TransformStream();
const stream = await zip.stream(entry);
- const nodeWritable = Writable.fromWeb(writable);
+ // Silence a type error about the Promise<void> returned by the close method
+ // of writable as not being assignable to Promise<undefined> which started
+ // appearing after updating to TypeScript 5.8.
+ //
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any
+ const nodeWritable = Writable.fromWeb(writable as any);
stream.pipe(nodeWritable);
nodeWritable.on("error", (e: unknown) => {