From 43a20bfd91aab6c0d842c362c92a438183192504 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 28 Mar 2022 12:06:37 +0100 Subject: [PATCH] fix launch.json for worker after TS migration --- .vscode/launch.json | 11 +++++++++-- packages/worker/.vscode/launch.json | 7 +++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 34951b6310..8cb49d5825 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -22,9 +22,16 @@ "name": "Budibase Worker", "type": "node", "request": "launch", - "program": "${workspaceFolder}/packages/worker/src/index.js", + "runtimeArgs": [ + "--nolazy", + "-r", + "ts-node/register/transpile-only" + ], + "args": [ + "${workspaceFolder}/packages/worker/src/index.ts" + ], "cwd": "${workspaceFolder}/packages/worker" - } + }, ], "compounds": [ { diff --git a/packages/worker/.vscode/launch.json b/packages/worker/.vscode/launch.json index 7417938376..a07cf96b80 100644 --- a/packages/worker/.vscode/launch.json +++ b/packages/worker/.vscode/launch.json @@ -5,10 +5,13 @@ "version": "0.2.0", "configurations": [ { + "name": "Start Server", "type": "node", "request": "launch", - "name": "Start Server", - "program": "${workspaceFolder}/src/index.js" + "runtimeExecutable": "node", + "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], + "args": ["src/index.ts"], + "cwd": "${workspaceRoot}", }, { "type": "node",