@@ -13,7 +22,7 @@ export const Converter = () => {
diff --git a/src/store/selectors.ts b/src/store/selectors.ts
index 1ce7646..df43839 100644
--- a/src/store/selectors.ts
+++ b/src/store/selectors.ts
@@ -1,4 +1,4 @@
-import { fileStatusSchema } from '../types/file.types';
+import { fileStatusSchema } from 'schema';
import type { State } from './store.types';
export const getFiles = (state: State) => Object.values(state.files);
diff --git a/src/store/store.types.ts b/src/store/store.types.ts
index cce7f37..6042583 100644
--- a/src/store/store.types.ts
+++ b/src/store/store.types.ts
@@ -1,4 +1,4 @@
-import type { FileStatus, VideoFile } from 'src/types/file.types';
+import type { FileStatus, VideoFile } from 'schema';
export type State = {
destinationPath: string;
diff --git a/src/store/useStore.ts b/src/store/useStore.ts
index 133624a..18550d0 100644
--- a/src/store/useStore.ts
+++ b/src/store/useStore.ts
@@ -2,7 +2,7 @@ import { formatFileObject } from 'src/utils';
import { create } from 'zustand';
import { immer } from 'zustand/middleware/immer';
import type { Store } from './store.types';
-import type { FileStatus } from 'src/types/file.types';
+import type { FileStatus } from 'schema';
export const useStore = create
()(
immer(set => ({
diff --git a/src/utils/__tests__/file.utils.test.ts b/src/utils/__tests__/file.utils.test.ts
index 6ff9392..5c0a7c6 100644
--- a/src/utils/__tests__/file.utils.test.ts
+++ b/src/utils/__tests__/file.utils.test.ts
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest';
import { areFilesFromSameDirectory, formatFileSize, getDirectoryPathFromFile } from '../file.utils';
-import type { VideoFile } from 'src/types/file.types';
+import type { VideoFile } from 'schema';
describe('file.utils', () => {
describe('formatFileSize', () => {
diff --git a/src/utils/file.utils.ts b/src/utils/file.utils.ts
index 143f329..2f77142 100644
--- a/src/utils/file.utils.ts
+++ b/src/utils/file.utils.ts
@@ -1,4 +1,4 @@
-import type { VideoFile } from 'src/types/file.types';
+import type { VideoFile } from 'schema';
export function formatFileSize(fileSize: number): string {
const base = 1024;
diff --git a/tsconfig.json b/tsconfig.json
index 7fcc458..8a10048 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -26,6 +26,7 @@
"include": [
"src",
"electron",
+ "schema",
".eslintrc.cjs",
"prettier.config.js",
"vite.config.ts",
diff --git a/tsconfig.node.json b/tsconfig.node.json
index dfc908e..8eeff6e 100644
--- a/tsconfig.node.json
+++ b/tsconfig.node.json
@@ -6,5 +6,5 @@
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
- "include": ["electron", "vite.config.ts"]
+ "include": ["electron", "schema", "vite.config.ts"]
}
diff --git a/vite.config.ts b/vite.config.ts
index 4449cd3..8ba28d5 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -26,6 +26,7 @@ export default defineConfig({
resolve: {
alias: {
src: path.resolve(__dirname, './src'),
+ schema: path.resolve(__dirname, './schema'),
},
},
test: {