Skip to content

A local-first personal finance app

:electron: Fix electron loot core resolutions (#4668)

Michael Clark8f12893ff014
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