build(simulator): don't preserve modules
[e-mobility-charging-stations-simulator.git] / src / charging-station / Bootstrap.ts
index cdfb26a6c615cd08e6e9de1140b29d0558f5f91a..0fd80dde46bfc349ee91a9d55c3d8f168fbc19fd 100644 (file)
@@ -53,8 +53,7 @@ export class Bootstrap {
     this.initializeCounters();
     this.workerImplementation = null;
     this.workerScript = path.join(
-      path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../'),
-      'charging-station',
+      path.dirname(fileURLToPath(import.meta.url)),
       `ChargingStationWorker${path.extname(fileURLToPath(import.meta.url))}`
     );
     Configuration.getUIServer().enabled === true &&
@@ -277,7 +276,7 @@ export class Bootstrap {
     await this.workerImplementation?.addElement({
       index,
       templateFile: path.join(
-        path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../'),
+        path.dirname(fileURLToPath(import.meta.url)),
         'assets',
         'station-templates',
         stationTemplateUrl.file