aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-31 02:53:18 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-31 02:56:53 +0100
commit8fafe2011857a836cf1d8dd9530930d1d6205cf6 (patch)
treeaee64862cc8f61cedcc0c18a40a39948fc3ebcdc /packages/main
parentchore: Add import extensions preparing for ts 4.6 nodenext (diff)
downloadsophie-8fafe2011857a836cf1d8dd9530930d1d6205cf6.tar.gz
sophie-8fafe2011857a836cf1d8dd9530930d1d6205cf6.tar.zst
sophie-8fafe2011857a836cf1d8dd9530930d1d6205cf6.zip
build: Use nodenext module resolution
The renderer package still has to use node module resolution to be able to find MUI packages.
Diffstat (limited to 'packages/main')
-rw-r--r--packages/main/src/controllers/config.ts2
-rw-r--r--packages/main/src/services/impl/ConfigPersistenceServiceImpl.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/main/src/controllers/config.ts b/packages/main/src/controllers/config.ts
index ec23e8f..971f151 100644
--- a/packages/main/src/controllers/config.ts
+++ b/packages/main/src/controllers/config.ts
@@ -18,7 +18,7 @@
18 * SPDX-License-Identifier: AGPL-3.0-only 18 * SPDX-License-Identifier: AGPL-3.0-only
19 */ 19 */
20 20
21import debounce from 'lodash-es/debounce'; 21import { debounce } from 'lodash-es';
22import ms from 'ms'; 22import ms from 'ms';
23import { applySnapshot, getSnapshot, onSnapshot } from 'mobx-state-tree'; 23import { applySnapshot, getSnapshot, onSnapshot } from 'mobx-state-tree';
24 24
diff --git a/packages/main/src/services/impl/ConfigPersistenceServiceImpl.ts b/packages/main/src/services/impl/ConfigPersistenceServiceImpl.ts
index 22b7d65..65a51ba 100644
--- a/packages/main/src/services/impl/ConfigPersistenceServiceImpl.ts
+++ b/packages/main/src/services/impl/ConfigPersistenceServiceImpl.ts
@@ -21,7 +21,7 @@
21import { watch } from 'fs'; 21import { watch } from 'fs';
22import { readFile, stat, writeFile } from 'fs/promises'; 22import { readFile, stat, writeFile } from 'fs/promises';
23import JSON5 from 'json5'; 23import JSON5 from 'json5';
24import throttle from 'lodash-es/throttle'; 24import { throttle} from 'lodash-es';
25import { join } from 'path'; 25import { join } from 'path';
26 26
27import type { ConfigPersistenceService, ReadConfigResult } from '../ConfigPersistenceService.js'; 27import type { ConfigPersistenceService, ReadConfigResult } from '../ConfigPersistenceService.js';