add "Launch via Vite Node"

This commit is contained in:
Felicio Mununga 2022-08-24 11:14:23 +02:00
parent 214df58a14
commit 362ac98f6a
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 18 additions and 0 deletions

18
.vscode/launch.json vendored
View File

@ -1,6 +1,24 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch via Vite Node",
"runtimeExecutable": "node",
"skipFiles": ["<node_internals>/**"],
// 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",