X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=394de0e274f7cca046131921aae821adadc4c10b;hb=480fecf6f69bc342772aa161c4452e2b544e12a4;hp=3ab0886e357ae04aebb05d6e15065cfbdd7414b6;hpb=e3018bc4b27b43106073e4c4cda031cc37715027;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.mjs b/rollup.config.mjs index 3ab0886e..394de0e2 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -2,18 +2,17 @@ import json from '@rollup/plugin-json'; import analyze from 'rollup-plugin-analyzer'; import copy from 'rollup-plugin-copy'; import del from 'rollup-plugin-delete'; -import istanbul from 'rollup-plugin-istanbul'; import { terser } from 'rollup-plugin-terser'; import ts from 'rollup-plugin-ts'; const isDevelopmentBuild = process.env.BUILD === 'development'; export default { - input: ['src/start.ts', 'src/ui/httpd/start.ts', 'src/charging-station/ChargingStationWorker.ts'], + input: ['src/start.ts', 'src/charging-station/ChargingStationWorker.ts'], output: [ { dir: 'dist', - format: 'es', + format: 'esm', exports: 'auto', sourcemap: true, preserveModules: true, @@ -36,28 +35,31 @@ export default { '@mikro-orm/core', '@mikro-orm/reflection', 'ajv', - 'ajv-draft-04', 'ajv-formats', 'basic-ftp', 'chalk', - 'crypto', - 'express', - 'fs', + 'http-status-codes', + 'just-clone', + 'just-merge', 'mnemonist/lru-map-with-delete', 'moment', 'mongodb', - 'path', - 'perf_hooks', + 'node:async_hooks', + 'node:crypto', + 'node:fs', + 'node:http', + 'node:path', + 'node:perf_hooks', + 'node:stream', + 'node:url', + 'node:util', + 'node:worker_threads', 'poolifier', 'proper-lockfile', - 'reflect-metadata', 'tar', - 'url', - 'uuid', 'winston', 'winston-daily-rotate-file', - 'winston/lib/winston/transports/index.js', - 'worker_threads', + 'winston/lib/winston/transports', 'ws', ], plugins: [ @@ -66,9 +68,14 @@ export default { tsconfig: 'tsconfig.json', browserslist: false, }), - isDevelopmentBuild && istanbul(), del({ - targets: ['dist/*', '!dist/assets', 'dist/assets/*.json', 'dist/assets/station-templates'], + targets: [ + 'dist/*', + '!dist/assets', + 'dist/assets/*.json', + 'dist/assets/station-templates', + 'dist/assets/json-schemas', + ], }), copy({ targets: [{ src: 'src/assets', dest: 'dist/' }],