From cd7833ce2400c9bb9e4b49c51c326783bfb03b75 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 31 Dec 2021 02:39:24 +0100 Subject: chore: Add import extensions preparing for ts 4.6 nodenext --- packages/shared/src/contextBridge/SophieRenderer.ts | 2 +- packages/shared/src/index.ts | 14 +++++++------- packages/shared/src/stores/Config.ts | 2 +- packages/shared/src/stores/SharedStore.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'packages/shared') diff --git a/packages/shared/src/contextBridge/SophieRenderer.ts b/packages/shared/src/contextBridge/SophieRenderer.ts index fc43b6e..285b373 100644 --- a/packages/shared/src/contextBridge/SophieRenderer.ts +++ b/packages/shared/src/contextBridge/SophieRenderer.ts @@ -20,7 +20,7 @@ import { SharedStoreListener } from '../stores/SharedStore'; -import { Action } from '../schemas'; +import { Action } from '../schemas.js'; export interface SophieRenderer { onSharedStoreChange(listener: SharedStoreListener): Promise; diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index 2f7146c..f0ae5dc 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts @@ -23,26 +23,26 @@ export type { SophieRenderer } from './contextBridge/SophieRenderer'; export { MainToRendererIpcMessage, RendererToMainIpcMessage, -} from './ipc'; +} from './ipc.js'; export type { Action, BrowserViewBounds, ThemeSource, -} from './schemas'; +} from './schemas.js'; export { action, browserViewBounds, themeSource, -} from './schemas'; +} from './schemas.js'; -export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config'; -export { config } from './stores/Config'; +export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config.js'; +export { config } from './stores/Config.js'; export type { SharedStore, SharedStoreListener, SharedStoreSnapshotIn, SharedStoreSnapshotOut, -} from './stores/SharedStore'; -export { sharedStore } from './stores/SharedStore'; +} from './stores/SharedStore.js'; +export { sharedStore } from './stores/SharedStore.js'; diff --git a/packages/shared/src/stores/Config.ts b/packages/shared/src/stores/Config.ts index 432945c..4b17d3c 100644 --- a/packages/shared/src/stores/Config.ts +++ b/packages/shared/src/stores/Config.ts @@ -25,7 +25,7 @@ import { SnapshotOut, } from 'mobx-state-tree'; -import { themeSource } from '../schemas'; +import { themeSource } from '../schemas.js'; export const config = types.model('Config', { themeSource: types.optional(types.enumeration(themeSource.options), 'system'), diff --git a/packages/shared/src/stores/SharedStore.ts b/packages/shared/src/stores/SharedStore.ts index c6c3ddc..8aefcdb 100644 --- a/packages/shared/src/stores/SharedStore.ts +++ b/packages/shared/src/stores/SharedStore.ts @@ -26,7 +26,7 @@ import { SnapshotOut, } from 'mobx-state-tree'; -import { config } from './Config'; +import { config } from './Config.js'; export const sharedStore = types.model('SharedStore', { config: types.optional(config, {}), -- cgit v1.2.3-54-g00ecf