refactor(simulator): consolidate connector status transition
[e-mobility-charging-stations-simulator.git] / rollup.config.mjs
index a0128a547b2bcb4cbf8999e37157aefaf885da00..1e9c26b879efc49e5896f5277f3b6f90f9ef29d5 100644 (file)
@@ -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';
@@ -21,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',
@@ -66,15 +57,16 @@ export default {
   plugins: [
     json(),
     typescript({
-      tsconfig: 'tsconfig.json',
+      tsconfig: 'tsconfig-base.json',
     }),
     del({
       targets: [
         'dist/*',
         '!dist/assets',
         'dist/assets/*.json',
-        'dist/assets/station-templates',
         'dist/assets/json-schemas',
+        'dist/assets/station-templates',
+        'dist/assets/ui-protocol',
       ],
     }),
     copy({