X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=0b43e8f8d3677921ab5fc3d8054e48dbaaac2382;hb=2585c6e94e3d900bf7ecca428299df1e649252db;hp=be3fa4d35f843333a713ed5558c3a658425e5ee3;hpb=8b6da9886c4ad2fd13120cd2c94b6995ff8eb221;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.mjs b/rollup.config.mjs index be3fa4d3..0b43e8f8 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,3 +1,4 @@ +/* eslint-disable n/no-unpublished-import */ import json from '@rollup/plugin-json'; import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; @@ -9,6 +10,7 @@ const isDevelopmentBuild = process.env.BUILD === 'development'; export default { input: ['src/start.ts', 'src/charging-station/ChargingStationWorker.ts'], + strictDeprecations: true, output: [ { dir: 'dist', @@ -20,16 +22,6 @@ export default { entryFileNames: '[name].mjs', ...(!isDevelopmentBuild && { plugins: [terser({ maxWorkers: 2 })] }), }, - { - dir: 'dist', - format: 'cjs', - exports: 'auto', - sourcemap: true, - preserveModules: true, - preserveModulesRoot: 'src', - entryFileNames: '[name].cjs', - ...(!isDevelopmentBuild && { plugins: [terser({ maxWorkers: 2 })] }), - }, ], external: [ '@mikro-orm/core', @@ -41,7 +33,7 @@ export default { 'http-status-codes', 'just-clone', 'just-merge', - 'mnemonist/lru-map-with-delete', + 'mnemonist/lru-map-with-delete.js', 'moment', 'mongodb', 'node:async_hooks', @@ -59,7 +51,7 @@ export default { 'tar', 'winston', 'winston-daily-rotate-file', - 'winston/lib/winston/transports', + 'winston/lib/winston/transports/index.js', 'ws', ], plugins: [ @@ -72,8 +64,9 @@ export default { 'dist/*', '!dist/assets', 'dist/assets/*.json', - 'dist/assets/station-templates', 'dist/assets/json-schemas', + 'dist/assets/station-templates', + 'dist/assets/ui-protocol', ], }), copy({