aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2021-10-01 21:51:55 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2021-10-01 21:51:55 +0530
commit204a80708e6e0a2189de16438a3eb4b57ef84987 (patch)
treea8fa3afb58dbfec67bced4281837d33fd4e71413 /src/helpers
parentrefactor: move 'asarRecipesPath' into 'asar-helpers' (diff)
downloadferdium-app-204a80708e6e0a2189de16438a3eb4b57ef84987.tar.gz
ferdium-app-204a80708e6e0a2189de16438a3eb4b57ef84987.tar.zst
ferdium-app-204a80708e6e0a2189de16438a3eb4b57ef84987.zip
refactor: split 'environment' into 'environment-remote' with only the remote module dependency
(might be a pre-requisite for the electron v14 upgrade)
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/recipe-helpers.ts2
-rw-r--r--src/helpers/service-helpers.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/recipe-helpers.ts b/src/helpers/recipe-helpers.ts
index 65ef04088..d482dffab 100644
--- a/src/helpers/recipe-helpers.ts
+++ b/src/helpers/recipe-helpers.ts
@@ -1,6 +1,6 @@
1/* eslint-disable global-require */ 1/* eslint-disable global-require */
2import { parse } from 'path'; 2import { parse } from 'path';
3import { userDataRecipesPath } from '../environment'; 3import { userDataRecipesPath } from '../environment-remote';
4 4
5export function getRecipeDirectory(id: string = ''): string { 5export function getRecipeDirectory(id: string = ''): string {
6 return userDataRecipesPath(id); 6 return userDataRecipesPath(id);
diff --git a/src/helpers/service-helpers.ts b/src/helpers/service-helpers.ts
index 13c921f88..678d5024f 100644
--- a/src/helpers/service-helpers.ts
+++ b/src/helpers/service-helpers.ts
@@ -1,5 +1,5 @@
1import { readdirSync, removeSync } from 'fs-extra'; 1import { readdirSync, removeSync } from 'fs-extra';
2import { userDataPath } from '../environment'; 2import { userDataPath } from '../environment-remote';
3 3
4export function getServicePartitionsDirectory(...segments) { 4export function getServicePartitionsDirectory(...segments) {
5 return userDataPath('Partitions', ...[segments].flat()); 5 return userDataPath('Partitions', ...[segments].flat());