From 8f12893ff0147bb1147f68ef6308836dc9d1d143 Mon Sep 17 00:00:00 2001 From: Michael Clark <5285928+MikesGlitch@users.noreply.github.com> Date: Fri, 21 Mar 2025 09:01:20 +0000 Subject: [PATCH] :electron: Fix electron loot core resolutions (#4668) * fix electron resolutions * temp fix * dont include build-electron in the web bundle assuming its built * lowering size of build * removing exports * release notes * adding bits back * remove bad config --- packages/desktop-electron/package.json | 3 +++ tsconfig.json | 4 ++++ upcoming-release-notes/4668.md | 6 ++++++ 3 files changed, 13 insertions(+) create mode 100644 upcoming-release-notes/4668.md diff --git a/packages/desktop-electron/package.json b/packages/desktop-electron/package.json index 5293902fa8..58ced4c175 100644 --- a/packages/desktop-electron/package.json +++ b/packages/desktop-electron/package.json @@ -17,6 +17,9 @@ "appId": "com.actualbudget.actual", "files": [ "build", + "!node_modules/@actual-app/web", + "node_modules/@actual-app/web/build", + "node_modules/@actual-app/web/package.json", "!node_modules/better-sqlite3/{benchmark,src,bin,docs,deps,build/Release/obj,build/Release/sqlite3.a,build/Release/test_extension.node}", "!**/*.js.map", "!**/stats.json", diff --git a/tsconfig.json b/tsconfig.json index 421eb82051..16e4bf2cf9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,6 +29,10 @@ "module": "es2022", // Until/if we build using tsc "noEmit": true, + "paths": { + // TEMPORARY: Until we can fix the "exports" in the loot-core package.json + "loot-core/*": ["./packages/loot-core/src/*"] + }, "plugins": [ { "name": "typescript-strict-plugin", diff --git a/upcoming-release-notes/4668.md b/upcoming-release-notes/4668.md new file mode 100644 index 0000000000..952d41f379 --- /dev/null +++ b/upcoming-release-notes/4668.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [MikesGlitch] +--- + +Remove loot-core exports to fix Electron