X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=rollup.config.mjs;h=57a3190eef0211519bcfbe5892695b99dd0696c4;hb=d5d2241eaa804299589416c871d277e5b9311f29;hp=1cb306ab7d16c050cadf465951004e189f32c089;hpb=f412fe241e02c715923bee7426e85a6725b78e21;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.mjs b/rollup.config.mjs index 1cb306ab..57a3190e 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -9,7 +9,7 @@ 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', @@ -33,13 +33,18 @@ export default { }, ], external: [ + '@mikro-orm/core', + '@mikro-orm/reflection', + 'ajv', + 'ajv-draft-04', + 'ajv-formats', + 'async_hooks', 'basic-ftp', 'chalk', 'crypto', - 'express', 'fs', - '@mikro-orm/core', - '@mikro-orm/reflection', + 'http', + 'http-status-codes', 'mnemonist/lru-map-with-delete', 'moment', 'mongodb', @@ -51,11 +56,11 @@ export default { 'tar', 'url', 'uuid', - 'ws', + 'winston', 'winston-daily-rotate-file', 'winston/lib/winston/transports/index.js', - 'winston', 'worker_threads', + 'ws', ], plugins: [ json(), @@ -65,7 +70,13 @@ export default { }), 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/' }],