perf: use O(1) queue implementation in async locking code
[e-mobility-charging-stations-simulator.git] / rollup.config.mjs
index 82b5b79aa27de94041111165e4d95eb415334288..be507238e8268c58c3e898f47c69a49e033d8b3b 100644 (file)
@@ -1,5 +1,5 @@
 /* eslint-disable n/no-unpublished-import */
-import os from 'os';
+import { cpus } from 'node:os';
 
 import json from '@rollup/plugin-json';
 import terser from '@rollup/plugin-terser';
@@ -19,7 +19,7 @@ export default {
       dir: 'dist',
       format: 'esm',
       sourcemap: !!isDevelopmentBuild,
-      plugins: [terser({ maxWorkers: os.cpus().length / 2 })],
+      plugins: [terser({ maxWorkers: cpus().length / 2 })],
     },
   ],
   external: [
@@ -57,6 +57,9 @@ export default {
     json(),
     typescript({
       tsconfig: 'tsconfig.json',
+      compilerOptions: {
+        sourceMap: !!isDevelopmentBuild,
+      },
     }),
     del({
       targets: [
@@ -73,8 +76,9 @@ export default {
       patterns: 'assets/**/*.json',
       exclude: [
         'assets/config-template.json',
-        'assets/*config[-_]*.json',
+        'assets/*config[-_.]*.json',
         'assets/idtags-template.json',
+        'assets/authorization-tags-template.json',
         'assets/ui-protocol/**/*',
       ],
     }),