Release 1.0.3
[e-mobility-charging-stations-simulator.git] / rollup.config.js
index 2184bb6e5657cb5ec4f5425dbcb24a89e61184f7..46683b3b1f9900d71aaf90b136efe296947936eb 100644 (file)
@@ -1,6 +1,8 @@
 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 typescript from 'rollup-plugin-typescript2';
 
@@ -20,9 +22,11 @@ export default {
   },
   external: ['crypto', 'perf_hooks', 'fs', 'path', 'poolifier', 'uuid', 'ws', 'winston-daily-rotate-file', 'winston/lib/winston/transports', 'winston', 'worker_threads'],
   plugins: [
+    json(),
     typescript({
       tsconfig: 'tsconfig.json'
     }),
+    isDevelopmentBuild && istanbul(),
     del({
       targets: 'dist/*'
     }),