fix: make ESM bundle work
[e-mobility-charging-stations-simulator.git] / .vscode / launch.json
index 5c8aa82b4f96dcd045bf6d9fc96aa11a2422d5d1..27d7900e69da361b680fc2eacc6819b5cf601fbf 100644 (file)
@@ -5,35 +5,28 @@
   "version": "0.2.0",
   "configurations": [
     {
-      "type": "pwa-node",
+      "type": "node",
       "request": "launch",
-      "name": "Debug Simulator via npm",
+      "name": "Debug Simulator Development Build via npm",
       "cwd": "${workspaceFolder}",
-      "preLaunchTask": "Build",
       "runtimeExecutable": "npm",
-      "runtimeArgs": [
-        "run-script",
-        "start:debug"
-      ],
-      "skipFiles": [
-        "<node_internals>/**"
-      ],
+      "runtimeArgs": ["run-script", "start:dev:debug"],
+      "skipFiles": ["<node_internals>/**"],
       "stopOnEntry": true
     },
     {
-      "type": "pwa-node",
-      "request": "launch",
-      "name": "Debug Simulator Development Build via npm",
-      "cwd": "${workspaceFolder}",
-      "runtimeExecutable": "npm",
-      "runtimeArgs": [
-        "run-script",
-        "start:dev:debug"
+      "name": "Debug Simulator Unit Tests",
+      "type": "node",
+      "request": "attach",
+      "port": 9229,
+      "continueOnAttach": true,
+      "autoAttachChildProcesses": false,
+      "timeout": 30000,
+      "resolveSourceMapLocations": [
+        "!**/node_modules/**",
+        "!**/.vscode/extensions/hbenl.vscode-mocha-test-adapter-*/**"
       ],
-      "skipFiles": [
-        "<node_internals>/**"
-      ],
-      "stopOnEntry": true
+      "skipFiles": ["<node_internals>/**"]
     }
   ]
 }