diff options
Diffstat (limited to 'src/api/server')
-rw-r--r-- | src/api/server/LocalApi.ts | 2 | ||||
-rw-r--r-- | src/api/server/ServerApi.ts | 18 |
2 files changed, 11 insertions, 9 deletions
diff --git a/src/api/server/LocalApi.ts b/src/api/server/LocalApi.ts index 6764816f9..56fa5cc8f 100644 --- a/src/api/server/LocalApi.ts +++ b/src/api/server/LocalApi.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { ExecException } from 'node:child_process'; | 1 | import type { ExecException } from 'node:child_process'; |
2 | import { ipcRenderer } from 'electron'; | 2 | import { ipcRenderer } from 'electron'; |
3 | import fastFolderSize from 'fast-folder-size'; | 3 | import fastFolderSize from 'fast-folder-size'; |
4 | 4 | ||
diff --git a/src/api/server/ServerApi.ts b/src/api/server/ServerApi.ts index 9e7582e1e..58c6845ac 100644 --- a/src/api/server/ServerApi.ts +++ b/src/api/server/ServerApi.ts | |||
@@ -1,22 +1,24 @@ | |||
1 | /* eslint-disable import/no-import-module-exports */ | 1 | /* eslint-disable import/no-import-module-exports */ |
2 | /* eslint-disable global-require */ | 2 | /* eslint-disable global-require */ |
3 | import { join } from 'node:path'; | 3 | import { join } from 'node:path'; |
4 | import tar from 'tar'; | ||
5 | import { | 4 | import { |
6 | readdirSync, | 5 | type PathOrFileDescriptor, |
7 | statSync, | ||
8 | writeFileSync, | ||
9 | copySync, | 6 | copySync, |
10 | ensureDirSync, | 7 | ensureDirSync, |
11 | pathExistsSync, | 8 | pathExistsSync, |
12 | readJsonSync, | 9 | readJsonSync, |
10 | readdirSync, | ||
13 | removeSync, | 11 | removeSync, |
14 | PathOrFileDescriptor, | 12 | statSync, |
13 | writeFileSync, | ||
15 | } from 'fs-extra'; | 14 | } from 'fs-extra'; |
15 | import tar from 'tar'; | ||
16 | 16 | ||
17 | import RecipeModel, { type IRecipe } from '../../models/Recipe'; | ||
18 | import RecipePreviewModel, { | ||
19 | type IRecipePreview, | ||
20 | } from '../../models/RecipePreview'; | ||
17 | import ServiceModel from '../../models/Service'; | 21 | import ServiceModel from '../../models/Service'; |
18 | import RecipePreviewModel, { IRecipePreview } from '../../models/RecipePreview'; | ||
19 | import RecipeModel, { IRecipe } from '../../models/Recipe'; | ||
20 | import UserModel from '../../models/User'; | 22 | import UserModel from '../../models/User'; |
21 | 23 | ||
22 | import sleep from '../../helpers/async-helpers'; | 24 | import sleep from '../../helpers/async-helpers'; |
@@ -32,8 +34,8 @@ import { | |||
32 | } from '../utils/auth'; | 34 | } from '../utils/auth'; |
33 | 35 | ||
34 | import { | 36 | import { |
35 | getRecipeDirectory, | ||
36 | getDevRecipeDirectory, | 37 | getDevRecipeDirectory, |
38 | getRecipeDirectory, | ||
37 | loadRecipeConfig, | 39 | loadRecipeConfig, |
38 | } from '../../helpers/recipe-helpers'; | 40 | } from '../../helpers/recipe-helpers'; |
39 | 41 | ||