From: Jérôme Benoit Date: Thu, 5 Jan 2023 21:38:21 +0000 (+0100) Subject: Cleanup rollup bundler externals X-Git-Tag: v1.1.89~24 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=65b0c151a66f8b6d99a30a2565cd9bb00576baeb;p=e-mobility-charging-stations-simulator.git Cleanup rollup bundler externals Signed-off-by: Jérôme Benoit --- diff --git a/rollup.config.mjs b/rollup.config.mjs index 231b7485..890bc33a 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -35,7 +35,6 @@ export default { '@mikro-orm/core', '@mikro-orm/reflection', 'ajv', - 'ajv-draft-04', 'ajv-formats', 'async_hooks', 'basic-ftp', @@ -53,13 +52,11 @@ export default { 'perf_hooks', 'poolifier', 'proper-lockfile', - 'reflect-metadata', 'tar', 'url', - 'uuid', 'winston', 'winston-daily-rotate-file', - 'winston/lib/winston/transports/index.js', + 'winston/lib/winston/transports', 'worker_threads', 'ws', ], diff --git a/src/utils/Logger.ts b/src/utils/Logger.ts index c3ea5c5c..7528d202 100644 --- a/src/utils/Logger.ts +++ b/src/utils/Logger.ts @@ -1,7 +1,7 @@ import type { Format } from 'logform'; import { Logger, createLogger, format, transport } from 'winston'; import DailyRotateFile from 'winston-daily-rotate-file'; -import TransportType from 'winston/lib/winston/transports/index.js'; +import TransportType from 'winston/lib/winston/transports'; import Configuration from './Configuration'; import Utils from './Utils';