Add a shared LRU cache per worker
[e-mobility-charging-stations-simulator.git] / rollup.config.js
index b1114284ea7bbe9d5d596fd46d04ce11f3a8a2e4..be738ef7d947b67444b9f261c66cd10d5db90d69 100644 (file)
@@ -9,7 +9,7 @@ import ts from 'rollup-plugin-ts';
 const isDevelopmentBuild = process.env.BUILD === 'development';
 
 export default {
-  input: ['src/start.ts', 'src/charging-station/ChargingStationWorker.ts'],
+  input: ['src/start.ts', 'src/ui/httpd/start.ts', 'src/charging-station/ChargingStationWorker.ts'],
   output: {
     dir: 'dist',
     format: 'cjs',
@@ -23,9 +23,12 @@ export default {
     'basic-ftp',
     'chalk',
     'crypto',
+    'express',
     'fs',
     '@mikro-orm/core',
     '@mikro-orm/reflection',
+    'mnemonist/lru-map-with-delete',
+    'moment',
     'mongodb',
     'path',
     'perf_hooks',
@@ -49,7 +52,7 @@ export default {
     }),
     isDevelopmentBuild && istanbul(),
     del({
-      targets: 'dist/*',
+      targets: ['dist/*', '!dist/assets', 'dist/assets/*.json', 'dist/assets/station-templates'],
     }),
     copy({
       targets: [{ src: 'src/assets', dest: 'dist/' }],