From 65b0c151a66f8b6d99a30a2565cd9bb00576baeb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 5 Jan 2023 22:38:21 +0100 Subject: [PATCH] Cleanup rollup bundler externals MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- rollup.config.mjs | 5 +---- src/utils/Logger.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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'; -- 2.34.1