Skip to content

Commit 405d13f

Browse files
committed
fix(vscode): launch & tasks to not use tsx
1 parent 80c0be0 commit 405d13f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.vscode/launch.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88
"name": "Debug Current Test File",
99
"autoAttachChildProcesses": true,
1010
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
11-
"program": "${workspaceRoot}/node_modules/tsx/dist/cli.mjs",
12-
"args": ["--inspect", "--test", "${relativeFile}"],
11+
"program": "${relativeFile}",
12+
"runtimeArgs": [
13+
"--import=@nitrogql/esbuild-register",
14+
"--inspect",
15+
"--test"
16+
],
1317
"smartStep": true,
1418
"console": "integratedTerminal"
1519
}

.vscode/tasks.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
{
55
"label": "Run Current Test File",
66
"type": "shell",
7-
"command": "${workspaceRoot}/node_modules/tsx/dist/cli.mjs",
8-
"args": ["--test", "${relativeFile}"],
7+
"command": "node",
8+
"args": [
9+
"--import=@nitrogql/esbuild-register",
10+
"--test",
11+
"${relativeFile}"
12+
],
913
"presentation": {
1014
"clear": true,
1115
"showReuseMessage": false,

0 commit comments

Comments
 (0)