From 362ac98f6a9f3c7f17b8c9b3e3cd877bda77e559 Mon Sep 17 00:00:00 2001 From: Felicio Mununga Date: Wed, 24 Aug 2022 11:14:23 +0200 Subject: [PATCH] add "Launch via Vite Node" --- .vscode/launch.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index e7ff8ee4..460cdd6e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,24 @@ { "version": "0.2.0", "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch via Vite Node", + "runtimeExecutable": "node", + "skipFiles": ["/**"], + // todo?: make relative to ${file} + "cwd": "${workspaceFolder}/packages/status-js", + "program": "${workspaceRoot}/node_modules/vite-node/dist/cli.mjs", + "args": ["${file}"], + "smartStep": true, + "sourceMaps": true, + "env": { + "DEBUG": "*", + "NODE_ENV": "test", + "VITEST": "true" + } + }, { "type": "node", "request": "launch",