From 36c467c2134d5195a1a88830a886975f293ee9e7 Mon Sep 17 00:00:00 2001 From: Alessio Gravili Date: Wed, 26 Jul 2023 00:12:45 +0200 Subject: [PATCH] chore: improve launch.json --- .vscode/launch.json | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 117e23e..a3385b8 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,22 +1,15 @@ { + // 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": [ { - "type": "node", - "cwd": "${workspaceFolder}", - "runtimeArgs": [ - "-r", - "./node_modules/ts-node/register" - ], + "command": "yarn run dev", + "name": "Run Dev", "request": "launch", - "name": "Launch Payload Website CMS", - "program": "${workspaceFolder}/src/server.ts", - "env": { - "PAYLOAD_CONFIG_PATH": "src/payload.config.ts" - }, - "outputCapture": "std", - - // "preLaunchTask": "npm: build:server", - }, + "type": "node-terminal", + "cwd": "${workspaceFolder}" + } ] }