Convert interface to type
[e-mobility-charging-stations-simulator.git] / rollup.config.mjs
index bdc96d661e2eb2d0f0c41ee078bfad4d551cd95a..effe368d667737a6ec2e3e38e389e20c7958ad3e 100644 (file)
@@ -1,15 +1,15 @@
+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 json from '@rollup/plugin-json';
 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',
@@ -33,13 +33,17 @@ export default {
     },
   ],
   external: [
+    '@mikro-orm/core',
+    '@mikro-orm/reflection',
+    'ajv',
+    'ajv-draft-04',
+    'ajv-formats',
     '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 +55,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 +69,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/' }],