From 2d2a25e6471fa96ad4b4c5acf2796414a3ec7bca Mon Sep 17 00:00:00 2001 From: Vu Nguyen Date: Sat, 18 Mar 2023 11:35:02 +0800 Subject: [PATCH] chore: fix debug mode --- .vscode/launch.json | 15 +++------------ .vscode/tasks.json | 2 +- package.json | 1 + 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index fea3525..fe8c3bd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,23 +10,14 @@ "args": ["--extensionDevelopmentPath=${workspaceRoot}/packages/vscode-css-variables"], "sourceMaps": true, "outFiles": ["${workspaceRoot}/packages/vscode-css-variables/dist/**/*.js"], - "preLaunchTask": "npm: build" + "preLaunchTask": "npm: debug" }, { "type": "node", "request": "attach", - "name": "Attach to Server 6011", + "name": "Attach to Server 6009", "address": "localhost", - "port": 6011, - "sourceMaps": true, - "outFiles": ["${workspaceRoot}/packages/vscode-css-variables/dist/**/*.js"] - }, - { - "type": "node", - "request": "attach", - "name": "Attach to Server 6012", - "address": "localhost", - "port": 6012, + "port": 6009, "sourceMaps": true, "outFiles": ["${workspaceRoot}/packages/vscode-css-variables/dist/**/*.js"] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ba51426..4cbca01 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,7 +3,7 @@ "tasks": [ { "type": "npm", - "script": "build", + "script": "debug", "group": "build", "presentation": { "panel": "dedicated", diff --git a/package.json b/package.json index d52c581..f2a87cd 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ ], "scripts": { "build": "turbo run build", + "debug": "turbo run build -- --sourcemap", "test": "turbo run test", "lint": "turbo run lint", "dev": "turbo run dev",