diff --git a/.eslintrc.json b/.eslintrc.json index efc11ae..23edeca 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -180,7 +180,7 @@ } }, { - "files": ["types/**/*"], + "files": ["src/shared/types/**/*"], "rules": { "@typescript-eslint/no-magic-numbers": "off" } diff --git a/src/renderer/services/api.ts b/src/renderer/services/api.ts index 60006d6..4150527 100644 --- a/src/renderer/services/api.ts +++ b/src/renderer/services/api.ts @@ -1,5 +1,5 @@ import { ipcRenderer } from 'electron'; -import { uuid } from '../../services/uuid'; +import { uuid } from '../../shared/services/uuid'; import IpcRendererEvent = Electron.IpcRendererEvent; const ipcClient: IpcClient = { diff --git a/src/services/uuid.spec.ts b/src/shared/services/uuid.spec.ts similarity index 100% rename from src/services/uuid.spec.ts rename to src/shared/services/uuid.spec.ts diff --git a/src/services/uuid.ts b/src/shared/services/uuid.ts similarity index 100% rename from src/services/uuid.ts rename to src/shared/services/uuid.ts diff --git a/types/deep-partial.d.ts b/src/shared/types/deep-partial.d.ts similarity index 100% rename from types/deep-partial.d.ts rename to src/shared/types/deep-partial.d.ts diff --git a/types/entities/work.d.ts b/src/shared/types/entities/work.d.ts similarity index 100% rename from types/entities/work.d.ts rename to src/shared/types/entities/work.d.ts diff --git a/types/http-code.d.ts b/src/shared/types/http-code.d.ts similarity index 100% rename from types/http-code.d.ts rename to src/shared/types/http-code.d.ts diff --git a/types/ipc-controller-method-decorator.d.ts b/src/shared/types/ipc-controller-method-decorator.d.ts similarity index 100% rename from types/ipc-controller-method-decorator.d.ts rename to src/shared/types/ipc-controller-method-decorator.d.ts diff --git a/types/ipc.d.ts b/src/shared/types/ipc.d.ts similarity index 100% rename from types/ipc.d.ts rename to src/shared/types/ipc.d.ts diff --git a/types/milliseconds.d.ts b/src/shared/types/milliseconds.d.ts similarity index 100% rename from types/milliseconds.d.ts rename to src/shared/types/milliseconds.d.ts diff --git a/tsconfig.json b/tsconfig.json index 99370fb..7daad4e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,5 +15,5 @@ "emitDecoratorMetadata": true, "importsNotUsedAsValues": "error" }, - "include": ["declarations/**/*.ts", "types/**/*.ts", "src/main.ts", "src/main/**/*.ts", "src/services/**/*.ts"] + "include": ["declarations/**/*.ts", "src/main.ts", "src/main/**/*.ts", "src/shared/**/*.ts"] } diff --git a/tsconfig.renderer.json b/tsconfig.renderer.json index 0d6ed5d..eba5212 100644 --- a/tsconfig.renderer.json +++ b/tsconfig.renderer.json @@ -9,11 +9,5 @@ "preserveConstEnums": false, "importsNotUsedAsValues": "error" }, - "include": [ - "declarations/**/*.ts", - "types/**/*.ts", - "src/renderer.ts", - "src/renderer/**/*.ts", - "src/services/**/*.ts" - ] + "include": ["declarations/**/*.ts", "src/renderer.ts", "src/renderer/**/*.ts", "src/shared/**/*.ts"] }