53 lines
1.7 KiB
JSON
53 lines
1.7 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Debug TS File",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"runtimeExecutable": "node",
|
|
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
|
|
"args": ["${file}"],
|
|
"cwd": "${workspaceRoot}",
|
|
"console": "integratedTerminal",
|
|
"skipFiles": ["<node_internals>/**", "node_modules/**"],
|
|
"envFile": "${workspaceFolder}/.env"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Debug Test File",
|
|
"autoAttachChildProcesses": true,
|
|
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
|
|
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
|
|
"args": ["run", "${fileBasename}"],
|
|
"cwd": "${fileDirname}",
|
|
"smartStep": true,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Debug CLI",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"runtimeExecutable": "node",
|
|
"args": ["${workspaceRoot}/packages/cli", "${input:cli-command}"],
|
|
"cwd": "${workspaceRoot}",
|
|
"sourceMaps": true,
|
|
"console": "integratedTerminal",
|
|
"skipFiles": ["<node_internals>/**", "node_modules/**"],
|
|
"envFile": "${workspaceFolder}/.env"
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "cli-command",
|
|
"type": "pickString",
|
|
"description": "Select a command to run",
|
|
"options": ["login", "logout", "init", "generate", "bundle", "build", "serve", "deploy"]
|
|
}
|
|
]
|
|
}
|