From: Jérôme Benoit Date: Fri, 19 May 2023 16:06:11 +0000 (+0200) Subject: refactor: revert internal exports in utils X-Git-Tag: v1.2.14~47 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=516dee136cf113684286054f85481d66c7961b49;p=e-mobility-charging-stations-simulator.git refactor: revert internal exports in utils Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 6423e34c..47c5e160 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -6,7 +6,6 @@ import chalk from 'chalk'; import merge from 'just-merge'; import { WorkerChoiceStrategies } from 'poolifier'; -// import { Constants, FileUtils, Utils } from './internal'; import { Constants } from './Constants'; import { FileUtils } from './FileUtils'; import { Utils } from './Utils'; diff --git a/src/utils/FileUtils.ts b/src/utils/FileUtils.ts index 328687b2..9b7f62e0 100644 --- a/src/utils/FileUtils.ts +++ b/src/utils/FileUtils.ts @@ -2,7 +2,6 @@ import fs from 'node:fs'; import chalk from 'chalk'; -// import { Utils, logger } from './internal'; import { logger } from './Logger'; import { Utils } from './Utils'; import type { EmptyObject, FileType, HandleErrorParams, JsonType } from '../types'; diff --git a/src/utils/Logger.ts b/src/utils/Logger.ts index d48659f4..9bb195a3 100644 --- a/src/utils/Logger.ts +++ b/src/utils/Logger.ts @@ -3,7 +3,6 @@ import { type Logger, createLogger, format, type transport } from 'winston'; import TransportType from 'winston/lib/winston/transports/index.js'; import DailyRotateFile from 'winston-daily-rotate-file'; -// import { Configuration, Utils } from './internal'; import { Configuration } from './Configuration'; import { Utils } from './Utils'; diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 2724f03f..3d8c73bd 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -3,7 +3,6 @@ import util from 'node:util'; import clone from 'just-clone'; -// import { Constants } from './internal'; import { Constants } from './Constants'; import { WebSocketCloseEventStatusString } from '../types'; diff --git a/src/utils/index.ts b/src/utils/index.ts index 6cb58d83..6a68f64f 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,12 +1,8 @@ -export { - ACElectricUtils, - AsyncLock, - AsyncLockType, - CircularArray, - Configuration, - Constants, - DCElectricUtils, - FileUtils, - Utils, - logger, -} from './internal'; +export { ACElectricUtils, DCElectricUtils } from './ElectricUtils'; +export { AsyncLock, AsyncLockType } from './AsyncLock'; +export { CircularArray } from './CircularArray'; +export { Configuration } from './Configuration'; +export { Constants } from './Constants'; +export { FileUtils } from './FileUtils'; +export { Utils } from './Utils'; +export { logger } from './Logger'; diff --git a/src/utils/internal.ts b/src/utils/internal.ts deleted file mode 100644 index f727257b..00000000 --- a/src/utils/internal.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from './AsyncLock'; -export * from './CircularArray'; -export * from './Constants'; -export * from './ElectricUtils'; -export * from './FileUtils'; -export * from './Utils'; -export * from './Logger'; -export * from './Configuration';