From 6685bfe9d35073a3832d8b9cbc8a8ff45459e03c Mon Sep 17 00:00:00 2001 From: jeffvli Date: Tue, 20 Dec 2022 04:11:27 -0800 Subject: [PATCH] Use relative imports on main --- src/main/features/core/player/index.ts | 4 ++-- tsconfig.json | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/features/core/player/index.ts b/src/main/features/core/player/index.ts index 3bf72959..8f571f4d 100644 --- a/src/main/features/core/player/index.ts +++ b/src/main/features/core/player/index.ts @@ -1,8 +1,8 @@ import { ipcMain } from 'electron'; import uniq from 'lodash/uniq'; import MpvAPI from 'node-mpv'; -import { store } from '/@/main/features/core/settings'; -import { getMainWindow } from '/@/main/main'; +import { store } from '../settings'; +import { getMainWindow } from '../../../main'; import { PlayerData } from '/@/renderer/store'; declare module 'node-mpv'; diff --git a/tsconfig.json b/tsconfig.json index 5ea19bd5..ec5005fb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,6 @@ "lib": ["dom", "es2021"], "baseUrl": "./src", "paths": { - "/main/*": ["./src/main/*"], "/@/*": ["*"] }, "declaration": true,