-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f36c5e0
commit a28ea6b
Showing
6 changed files
with
38 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
declare module 'module' { | ||
const globalPaths: string[]; | ||
} | ||
|
||
// bundles not available until we build them | ||
declare module 'loot-core/lib-dist/bundle.desktop.js' { | ||
const initApp: (isDev: boolean) => void; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Module from 'module'; | ||
|
||
// @ts-strict-ignore | ||
import fetch from 'node-fetch'; | ||
|
||
import './setRequireHook'; | ||
|
||
Module.globalPaths.push(__dirname + '/..'); | ||
global.fetch = fetch; | ||
|
||
const lazyLoadBackend = async (isDev: boolean) => { | ||
// eslint-disable-next-line import/extensions | ||
const bundle = await import('loot-core/lib-dist/bundle.desktop.js'); | ||
bundle.initApp(isDev); | ||
}; | ||
|
||
const isDev = false; | ||
|
||
// Start the app | ||
lazyLoadBackend(isDev); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
category: Maintenance | ||
authors: [MikesGlitch] | ||
--- | ||
|
||
Update Electron server file to use typescript |