From 05cba949825bb73241e6210fe03391463e881c9f Mon Sep 17 00:00:00 2001 From: Junyi Date: Thu, 3 Aug 2023 16:04:00 +0700 Subject: [PATCH] chore: change debug server to yarn dev (#2383) --- .vscode/launch.json | 68 ++++++++------------------------------------- 1 file changed, 12 insertions(+), 56 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 764a195ebb..09c8da3ad8 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,21 +5,9 @@ "type": "node", "request": "launch", "name": "Debug Server", - "runtimeArgs": [ - "-r", - "dotenv/config", - "-r", - "tsconfig-paths/register", - "-r", - "ts-node/register" - ], - "args": [ - "${workspaceRoot}/packages/app/server/src/index.ts", - "start" - ], - "skipFiles": [ - "/**" - ], + "runtimeExecutable": "yarn", + "runtimeArgs": ["dev", "--server"], + "skipFiles": ["/**"], "console": "integratedTerminal", "internalConsoleOptions": "neverOpen" }, @@ -28,26 +16,12 @@ "request": "launch", "name": "Debug Jest Tests", "runtimeExecutable": "yarn", - "runtimeArgs": [ - "run", - "--inspect-brk", - "test", - "--runInBand", - "${file}" - ], - "skipFiles": [ - "/**" - ], + "runtimeArgs": ["run", "--inspect-brk", "test", "--runInBand", "${file}"], + "skipFiles": ["/**"], "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "windows": { - "runtimeArgs": [ - "run", - "--inspect-brk", - "test", - "--runInBand", - "/${fileBasename}" - ], + "runtimeArgs": ["run", "--inspect-brk", "test", "--runInBand", "/${fileBasename}"] } }, { @@ -55,22 +29,12 @@ "request": "launch", "name": "Debug Client Tests", "runtimeExecutable": "yarn", - "runtimeArgs": [ - "run", - "test:client", - "${file}" - ], - "skipFiles": [ - "/**" - ], + "runtimeArgs": ["run", "test:client", "${file}"], + "skipFiles": ["/**"], "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "windows": { - "runtimeArgs": [ - "run", - "test:client", - "${relativeFile}" - ], + "runtimeArgs": ["run", "test:client", "${relativeFile}"] } }, { @@ -78,18 +42,10 @@ "request": "launch", "name": "Debug Migration", "runtimeExecutable": "yarn", - "runtimeArgs": [ - "run", - "--inspect-brk", - "nocobase", - "migrator", - "up", - ], - "skipFiles": [ - "/**" - ], + "runtimeArgs": ["run", "--inspect-brk", "nocobase", "migrator", "up"], + "skipFiles": ["/**"], "console": "integratedTerminal", "internalConsoleOptions": "neverOpen" - }, + } ] }